(self, mux, chan, family)
| 256 | class UdpProxy(Handler): |
| 257 | |
| 258 | def __init__(self, mux, chan, family): |
| 259 | sock = socket.socket(family, socket.SOCK_DGRAM) |
| 260 | Handler.__init__(self, [sock]) |
| 261 | self.timeout = time.time() + 30 |
| 262 | self.mux = mux |
| 263 | self.chan = chan |
| 264 | self.sock = sock |
| 265 | |
| 266 | def send(self, dstip, data): |
| 267 | debug2('UDP: sending to %r port %d' % dstip) |