/python_sockets

Sockets Management Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Socket Management in python

Some examples of uses of udp and tcp sockets in python.

This includes also a small framework to use sockets in an easy way using a custom protocol. The framework includes 3 main abstractions:

  • protocol: this class defines the way packets are coded and decoded, transmitted and received, independently of the transport protocol (tcp or udp).
  • client: this class is a generic client that handles sending and receiving messages. It can be configured to use udp or tcp.
  • server: this class needs to be developed according to the user needs and transport protocol wanted.

Both client and server classes use the protocol class to be compatible.

Resources