from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor

class Helloer(DatagramProtocol):

     def datagramReceived(self, data, address):
       print("received %r from %s" % (data, address))

# 0 means any port, we don't care in this case
reactor.listenUDP(1234, Helloer())
reactor.run()

a979c253e167fd2b14f17f49524e18363a3dda0c
<mask token>


class Helloer(DatagramProtocol):
    <mask token>


<mask token>

<mask token>


class Helloer(DatagramProtocol):

    def datagramReceived(self, data, address):
        print('received %r from %s' % (data, address))


<mask token>

<mask token>


class Helloer(DatagramProtocol):

    def datagramReceived(self, data, address):
        print('received %r from %s' % (data, address))


reactor.listenUDP(1234, Helloer())
reactor.run()

from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor


class Helloer(DatagramProtocol):

    def datagramReceived(self, data, address):
        print('received %r from %s' % (data, address))


reactor.listenUDP(1234, Helloer())
reactor.run()

from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor

class Helloer(DatagramProtocol):

     def datagramReceived(self, data, address):
       print("received %r from %s" % (data, address))

# 0 means any port, we don't care in this case
reactor.listenUDP(1234, Helloer())
reactor.run()
