'Send data to a channel.  This should not normally be used: instead use
channel.write(data) as it manages the window automatically.
@type channel:  subclass of L{SSHChannel}
@type data:     L{bytes}'

def sendData(self, channel, data):

    if channel.localClosed:
        return
    self.transport.sendPacket(MSG_CHANNEL_DATA, (struct.pack('>L', self.channelsToRemoteChannel[channel]) + common.NS(data)))
