So I've been reading the Beej's guide to network programming lately and have this question.. I'd like to get the server.c and client.c they show to have this functionality when run:
1. Send message
2. Receive message
3. Quit
so once the client connects to the server i want both the client and server to have this menu displayed with both options available for a real 2 way communication over the same socket. the data can be sent and stored as a file on the remote system or just displayed on the screen (thats easy to do) but my question is what about what I'm asking .. is that possible? or do i need to create 2 serverers and 2 clients and run them on 2 ports? thanks