added two methods to socket wrapper

Added connect method and send method. No change to how socket is defined.