You will practice network programming using sockets sockets


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.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: You will practice network programming using sockets sockets
Reference No:- TGS02222148

Now Priced at $60 (50% Discount)

Recommended (96%)

Rated (4.8/5)