README.txt Basic TCP client and server. listen-tcp.c - The server, that listens for a connection then prints out the client message. client-tcp.c - The client, that connects to the server and sends a message. Note, the server *must* be started before the client. Example run: -------- Server -------- % listen-tcp listen-tcp - server to accept TCP connections usage: listen-tcp - port to listen on % listen-tcp 7500 Listen activating. Trying to create socket at port 7500... Socket ready to go! Accepting connections.... [Note: client started here] received: 'Hello, world!' received: 'Networking is awesome!' server exiting -------- Client -------- % talk-tcp talk-tcp - client to try TCP connection to server usage: talk-tcp - Internet name of server host - port % talk-tcp localhost 7500 Talk activated. Trying to connect to server localhost at port 7500... Looking up localhost... Found it. Setting port connection to 7500... Done. Creating socket... Created. Trying connection to server... Connection established! Type in messages to send to server. Hello, world! sending: 'Hello, world!' Networking is awesome! sending: 'Networking is awesome!'