you can no longer crash the connection object by calling read/write/disconnect before connecting
changed protocol - messages' type field is now only one byte the type is followed by another byte which is for flags; added flag for pushed messages
forgot to add latest version
connection class rewritten; it is now easier to use; it is also now able to detect when the connection is closed from the server side
logging is now controlled from the outside, a request now times out appropriately