AkarasateH / PySocketProgramming

Socket Programming for TCP and UDP protocol by Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket Programming for TCP and UDP protocol

Install Python

Socket TCP

These are step to run Socket Programming for TCP. Please follow these below steps to run Server and Client.

  1. Go to TCP folder.
  2. Run server by using the command python3 server.py.
  3. Run client by using the command python3 client.py.
  4. After run client, You will see ping message in your terminal.
  5. Type your server IP address append ping message and then enter.
  6. You can set timeout, message and Number of retry loop in client.py by set at TIMEOUT, MESSAGE and RETRY variables.

Socket UDP

These are step to run Socket Programming for UDP. Please follow these below steps to run Server and Client.

  1. Go to UDP folder.
  2. Run server by using the command python3 server.py.
  3. Run client by using the command python3 client.py.
  4. After run client, You will see ping message in your terminal.
  5. Type your server IP address append ping message and then enter.
  6. You can set timeout, message and Number of retry loop in client.py by set at TIMEOUT, MESSAGE and RETRY variables.

About

Socket Programming for TCP and UDP protocol by Python.


Languages

Language:Python 100.0%