def _send(self, *messages):
        """Send message."""
        if not self.transport:
            return False

        messages = [message.encode('ascii') for message in messages]
        data = b''
        while messages:
            message = messages.pop(0)
            if len(data + message) + 1 > self.parent.cfg.maxudpsize:
                self.transport.sendto(data)
                data = b''

            data += message + b'\n'

        if data:
            self.transport.sendto(data)
def _send ( self , * messages ) : if not self . transport : return False messages = [ message . encode ( 'ascii' ) for message in messages ] data = b'' while messages : message = messages . pop ( 0 ) if len ( data + message ) + 1 > self . parent . cfg . maxudpsize : self . transport . sendto ( data ) data = b'' data += message + b'\n' if data : self . transport . sendto ( data )
Send message.