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 tcpClient
serverIP = '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 tcpServer
connection = tcpServer()
connection.listen()
x = 1
while(1):
connection.send(str(x))
x += 1
https://github.com/BSMRKRS/bsmLib - (bsmLib)