FrontPage
»
LowLevelLibrary
»
NetworkModule
This module encapsulates the basics of connecting to a ../PicoGUI server trough TCP/IP.
It implements only two exception class (Error
, which isn't used yet, and ProtocolError
), and one "factory" function, sock
, which returns a socket.socket instance already initialized and tested.
sock(address="localhost", display=0)
- connects to pgserver at address
address
and displaydisplay
, fetch thehello
packet and return the socket object.