A simple chat application using sockets programming written in Python
DOCUMENTATION:
-
First of all, run chat_server.py. It will start the socket server to which the various clients can then connect.
-
Now, in a different terminal window, run chat_client.py with proper syntax.
$ python chat_client.py hostname port
which in this case will be:
$ python chat_client.py localhost 5000
- Repeat step 2 in different terminal. Now you have 2 clients connected to the server.
Send messages from either of the two and see how they send/receive messages!!
Don't forget to have an eye on terminal window running chat_server.py! There must be something interested going on! ;)