Updated TCP server to handle multiple socket connections (TODO: dispose socket pointers on disconnect)