MCPcopy
hub / github.com/sshuttle/sshuttle / recv_udp

Method recv_udp

sshuttle/methods/ipfw.py:127–134  ·  view source on GitHub ↗
(self, udp_listener, bufsize)

Source from the content-addressed store, hash-verified

125 return sock.getsockname()
126
127 def recv_udp(self, udp_listener, bufsize):
128 srcip, dstip, data = recv_udp(udp_listener, bufsize)
129 if not dstip:
130 debug1(
131 "-- ignored UDP from %r: "
132 "couldn't determine destination IP address" % (srcip,))
133 return None
134 return srcip, dstip, data
135
136 def send_udp(self, sock, srcip, dstip, data):
137 if not srcip:

Callers 5

test_recv_udpFunction · 0.45
test_recv_udpFunction · 0.45
test_recv_udpFunction · 0.45
onaccept_udpFunction · 0.45
ondnsFunction · 0.45

Calls 2

debug1Function · 0.90
recv_udpFunction · 0.70

Tested by 3

test_recv_udpFunction · 0.36
test_recv_udpFunction · 0.36
test_recv_udpFunction · 0.36