'Send a pickled string to a socket.
This function no longer allows for partial sends which can happen
when the network is busy - UDP does not guarantee delivery and
can deliver packets out of sequence.'

def send(self, s):

    if (self.sock is None):
        self.createSocket()
    self.sock.sendto(s, (self.host, self.port))
