Socket is a standard Python library. This library allows for low-access networking with TCP.
Client is the computer that connects to the server.
from bsmLib import tcpClientserverIP = '192.168.21.xxx'connection = tcpClient(serverIP)connection.connect()while(1): print(connection.recv()) Server is the side that hosts the connection.
from bsmLib import tcpServerconnection = tcpServer()connection.listen()x = 1while(1): connection.send(str(x)) x += 1https://github.com/BSMRKRS/bsmLib - (bsmLib)