Python twisted.internet.protocol.ConnectedDatagramProtocol() Examples

The following are 2 code examples of twisted.internet.protocol.ConnectedDatagramProtocol(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module twisted.internet.protocol , or try the search function .
Example #1
Source File: unix.py    From Safejumper-for-Desktop with GNU General Public License v2.0 5 votes vote down vote up
def __init__(self, addr, proto, maxPacketSize=8192, mode=0o666,
                 bindAddress=None, reactor=None):
        assert isinstance(proto, protocol.ConnectedDatagramProtocol)
        DatagramPort.__init__(self, bindAddress, proto, maxPacketSize, mode,
                              reactor)
        self.remoteaddr = addr 
Example #2
Source File: unix.py    From learn_python3_spider with MIT License 5 votes vote down vote up
def __init__(self, addr, proto, maxPacketSize=8192, mode=0o666,
                 bindAddress=None, reactor=None):
        assert isinstance(proto, protocol.ConnectedDatagramProtocol)
        DatagramPort.__init__(self, bindAddress, proto, maxPacketSize, mode,
                              reactor)
        self.remoteaddr = addr