Connect to a server at the specified address.
| Parameters: | 
 | 
|---|---|
| Returns: | The connection to the server. | 
| Return type: | _NetworkConnection | 
Accepts a connection from a client.
| Parameters: | port (integer) – The port to accept connections over | 
|---|---|
| Returns: | The connection from the client. | 
| Return type: | _NetworkConnection | 
“Hidden” class that handles the inner workings of a network connection.
Sends a string message over the connection.
| Parameters: | message (string) – a string to send over the connection. | 
|---|
Recieve a line of text from the socket.
| Returns: | A message from the socket | 
|---|---|
| Return type: | string | 
Close all connections.
States whether the current connection is valid.
| Returns: | True if the connection is valid. | 
|---|---|
| Return type: | boolean |