Minor change to TCP Socket class

Changed tcp socket class to have function to do function. Need to change
some aspects of the sending class so that it can handle long's as at the
moment it converts them to 0