socket: created socket object along with routines to begin using a tcp socket