Write codes in those languages that communicate

Assignment Help JAVA Programming
Reference no: EM131426531

In this assignment, you will practice network programming using sockets. Sockets are tools for connecting two programs together so that they can talk to each other. They are available in many programming languages such as C, Java, etc., so you can use them write codes in those languages that communicate with other programs over the network.

In this assignment, you goal is to write two programs: 1) client and 2) server.

client:

It is a program that receives an input from the user (in a string format), creates a connection to the server over a specific port number, and sends the user's input to the server.

server:
It is program that on startup, waits for incoming connections over a specific port. When a connection is established, it reads the data sent from the client, and displays it on the screen.

You can use either C/C++ or Java for writing the client code and the server code. If you use C/C++, depending on your machine, you must follow the tutorial for either Windows socket programming or Linux socket programming. For Java, there is no difference.

socket programming in C for Linux:

https://www.binarytides.com/socket-programming-c-linux-tutorial/

socket programming in C for Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738545(v=vs.85).aspx

socket programming in Java:
https://docs.oracle.com/javase/tutorial/networking/sockets/index.html

There are many other tutorials online. Feel free to use them.

Submission:

Submit a zipped file containing a 1-page pdf report, along with your client code and server code via connect. DO NOT SUBMIT EXECUTABLES. In the report, simply explain how to solved the problem, and what online resources you used.
You can do the assignment in groups of 2.

Note: You may be asked to run your client and server code in the class on your laptop to test them. Be prepared to do so.

Verified Expert

The code shows the communication mechanism between the client and the server using Sockets . It consists of 2 Java Files demonstrating socket programming in java and a pdf file describing how to solve such problems and the resources that were used in solving it . It also contains the output screenshots of the java program. The Java code is written in IntelliJ IDE.

Reference no: EM131426531

Questions Cloud

Persuade leaders to respect and trust them as followers : What attributes should followers have to persuade leaders to respect and trust them as followers? Explain.
Explain rationale for rules and procedures you use : State and explain rationale for rules and procedures you use in the classroom. Explain how you involve students in decision making. Explain methods you use for conflict resolution.
Business strategy when in a hypercompetitive industry : 1. Discuss how collusion can have a negative affect as a business strategy. Give an actual example of a collusion strategy used by a company. 2. Describe how a firm develops a business strategy when in a hypercompetitive industry.
Supervisor in the health information services department : Suppose you are a supervisor in the Health Information Services Department of a facility with a policy prohibiting secondary employment with a competitor.
Write codes in those languages that communicate : You will practice network programming using sockets. Sockets are tools for connecting two programs together so that they can talk to each other - They are available in many programming languages such as C, Java, etc., so you can use them write code..
Describe the recruitment procedures : Describe the tasks that participants will be asked to perform including a step by step description of the procedures you plan to use with your subjects. Provide the approximate duration of subject participation for each procedure/ instrument and t..
Title-credit card default prediction : Please complete the project plan you should design the project plan according to all breakdown items listed below, the plan should be double spaced no requirement on page limit as long as you clearly answer all break down items and no requirement ..
How much does she need to save each year : Her savings, she plans to arrange retirement funding that will be in place if she were to live "forever" with the understanding that her heirs will inherit the remainder when she dies.
What might happen if validity is undermined : First, explain the general importance of validity as it pertains to educational assessment. Why should teachers always strive for this result? What might happen if validity is undermined?

Reviews

len1426531

3/14/2017 3:18:12 AM

Creaitng a client server programming model which works on networks - submit a zipped file containing a 1-page pdf report, along with your client code and server code via connect. DO NOT SUBMIT EXECUTABLES. In the report, simply explain how to solved the problem, and what online resources you used. You can do the assignment in groups of 2. Note: You may be asked to run your client and server code in the class on your laptop to test them. Be prepared to do so.

Write a Review

JAVA Programming Questions & Answers

  Communication with an smtp server

Develop a graphical user interface based java program that can communicate with a real SMTP email server for sending emails

  Write java application to demonstrate the behavior

The source code is patterned after a similar example that was taken from Joyce Farrell's textbook, Java Programming.

  Develop a java based gui application using swing that

develop a java based gui applicationusing swing that allows the user to enter charityfund informationwrite the

  Determine whether a given credit card number is valid or not

Implement Luhn's algorithm in a program to determine whether a given credit card number is valid or not. You must test if the number of digits in the input is in the valid range (13 to 16), run Luhn's algorithm to test its validity.

  Calculate and display the total retail value of all products

Your application must calculate and display the total retail value of all products sold after all five pairs of inputs are completed - Write a Java application that prompts the user for pairs of inputs of a product number

  Use random function to create account number

Add a static method numAccounts that returns the total number of accounts. (Think about why this method should be static -- its information is not related to any particular account.)

  Write following java expressions in mathematical notation

Write the following Java expressions in mathematical notation.

  Determine the best way to gather business rules

You have been hired by Happy Health to determine the best way to gather business rules for a new phone system.

  Develop a java application for the local library

Develop a Java application for the local library as part of an upgrade initiative. As in all libraries, this is a place where one can check out books.

  Write a complete java program that draws a scatterplot

Write a complete Java program that draws a scatterplot by reading in points of data from a file and displaying them. The input data file consists of a pair of integers representing a point on each line of the file; the first integer is the x coord..

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

  Write an application to calculate the salespersons salary

Write an application that prompts the user to enter the sales for each employee, then it calculates the salesperson's salary. The process repeats until the user finishes entering all employees' information.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd