'Process the given application bytes and send any resulting TLS traffic
which arrives in the send BIO.
If C{loseConnection} was called, subsequent calls to C{write} will
drop the bytes on the floor.'

def write(self, bytes):

    if isinstance(bytes, unicode):
        raise TypeError('Must    write    bytes    to    a    TLS    transport,    not    unicode.')
    if (self.disconnecting and (self._producer is None)):
        return
    self._write(bytes)
