/examples/udpserver.py
https://bitbucket.org/prologic/circuits/ · Python · 10 lines · 5 code · 4 blank · 1 comment · 0 complexity · 673948938e1ecb5a635930d29563c00a MD5 · raw file
- #!/usr/bin/env python
- from circuits.net.sockets import UDPServer
- class EchoServer(UDPServer):
- def read(self, address, data):
- self.write(address, data.strip())
-
- EchoServer(8000).run()