PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/udpserver.py

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