Still working on server negotiation and added ssl socket.