Simple scripts to run a client and server sockets for TCP and UDP and transfer data through them.
TCP client and server scripts use a SOCK_STREAM
while UDP client and server use SOCK_DGRAM
socket type.
- Open command line or your favorite shell.
- Run server using
python tcpserver.py
orpython udpserver.py
- Run client using
python tcpclient.py
orpython udpclient.py
Implemented and tested on Python v3.7.4