Closes connection.
Connects to a server.
Receives data.
Sends data as struct messages.
See Implementation