Type net:Socket

A net:Socket represents a network connection or resource.
Constructors:
net:Socket(Node port)
Create a socket connection to the local host.
net:Socket(Node host, Node port)
Create a socket connection to the named host.
net:Socket(Node host, Node port, Node ssl)
Create a socket connection to the named host. If ssl is true, the socket is created using Secure Socket Layer.
Functions:
close()
closeReader()
closeWriter()
receive()
Receive a net:Message over this net:Socket. Uses a net:MessageFactory to produce the actual message.
send(net:Message message)
Send a net:Message over this net:Socket
Returns: This net:Socket
stream()