'Send all bytes of the string \'request\' out to socket.'

def sendRaw(self, request):

    if (not self.isConnected):
        raise IOError('Not    connected    to    FieldTrip    buffer')
    N = len(request)
    nw = self.sock.send(request)
    while (nw < N):
        nw += self.sock.send(request[nw:])
