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

def sendExtendedData(self, channel, dataType, data):

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