Project 1 Starter Code

Below you will find the program simplex talk implemented in C, Java, and Python. In each version, the server program takes no arguments, and the client program takes exactly one argument - either the host name of the server or the IP address of the server.

As you modify these program, make sure you first change the server port number to one of the port numbers you were assigned to help avoid collisions.

In all examples of compliation and running below, substitute the word "program" with the name of your source code file.


TCP Simplex Talk in C

Compilation on Linux servers

gcc program.c -o program

Running on Linux servers

./program [any arguments]

TCP Simplex Talk in Java

Compilation on Linux servers

javac program.java

Running on Linux servers

java program [any arguments]

TCP Simplex Talk in Python 3

Running on Linux servers

python program.py [any arguments]