Connection layer built on top of sockets

More windows dependencies!!! (may encapsulate in Thread class later.)