This repo is for me to learn how to use sockets for communication between servers and clients.
I have implemented a simple TCP socket connection between a client and a server on my local machine on port 9002
The server is established using the following workflow:
- Create socket()
- Bind the socket() to my IP and desired port
- Call listen() and allow conenctions to come in from clients
- Wait for connections and call accept() when clients come in
- Send a message to the client