'Sends data to the remote machine or queues it to be sent later.
Depending on the current protocol state, the given `data\' is either
directly sent to the remote machine or queued.  The buffer is then
flushed once, a connection is established.'

def receivedUpstream(self, data):

    if (self.protoState == const.ST_CONNECTED):
        self.sendRemote(data.read())
    else:
        self.sendBuf += data.read()
