Internet client and server support.
make System.network.socket(domain, type, protocol, )
: Constructs a new socket.destruct System.network.socket()
: Class destructor.AF_INET
: AF_INETAF_INET6
: AF_INET6AF_UNIX
: AF_UNIXAF_UNSPEC
: AF_UNSPECSOCK_DGRAM
: SOCK_DGRAMSOCK_SEQPACKET
: SOCK_SEQPACKETSOCK_STREAM
: SOCK_STREAM__destruct__()
: Class destructor.accept()
: Accepts a new connection from the listening socket.bind(host, port, )
: Binds socket to given host and port.close()
: Closes socket and prevents further operations on it.connect(host, port, )
: Connects to given host and port.eof()
: Checks if the socket has any more data to read. 1 second timeout.eof(timeout, )
: Checks if the socket has any more data to read. Timeout in parameter.listen(queue, )
: Listen for connections on given socket.read(size, )
: Read bytes from socket and place in a string.read(size, timeout, )
: Read bytes from socket and place in a string. Takes a timeout argumentreadline()
: Reads a line of text into a string.write(str, )
: Writes bytes to socket.