Started the implementation of TCP support. Not ready yet.