Fix uninitialised variable.
Begin work on TCP server.