Abstracted some more of the socket methods