Comms
This module implements the Socket communication.
- class TcpSocket(host=None, port=None, eol=b'\\n', timeout=30.0, logger=None)
Socket communication class to access raw socket layer using TCP protocol.
- Example:
from comms import TcpSocket sock = TcpSocket(”tcp://127.0.0.1:45678”)
- class UdpSocket(host=None, port=None, eol=b'\\n', timeout=30.0, logger=None)
Socket communication class to access raw socket layer using UDP protocol.
- Example:
from comms import UdpSocket sock = UdpSocket(“udp://127.0.0.1:45678”)