Properly read and write to sockets, accounting for partial packets
Change server connection to use interfaced socket