MCPcopy
hub / github.com/sshuttle/sshuttle / send

Method send

sshuttle/server.py:266–273  ·  view source on GitHub ↗
(self, dstip, data)

Source from the content-addressed store, hash-verified

264 self.sock = sock
265
266 def send(self, dstip, data):
267 debug2('UDP: sending to %r port %d' % dstip)
268 try:
269 self.sock.sendto(data, dstip)
270 except socket.error:
271 _, e = sys.exc_info()[:2]
272 log('UDP send to %r port %d: %s' % (dstip[0], dstip[1], e))
273 return
274
275 def callback(self, sock):
276 try:

Callers 5

try_sendMethod · 0.45
callbackMethod · 0.45
callbackMethod · 0.45
hostwatch_readyFunction · 0.45
udp_reqFunction · 0.45

Calls 2

debug2Function · 0.90
logFunction · 0.90

Tested by

no test coverage detected