MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / connect_dst

Function connect_dst

ssnet.py:525–531  ·  view source on GitHub ↗
(ip, port)

Source from the content-addressed store, hash-verified

523
524
525def connect_dst(ip, port):
526 debug2('Connecting to %s:%d\n' % (ip, port))
527 outsock = socket.socket()
528 outsock.setsockopt(socket.SOL_IP, socket.IP_TTL, 42)
529 return SockWrapper(outsock, outsock,
530 connect_to = (ip,port),
531 peername = '%s:%d' % (ip,port))
532
533
534def runonce(handlers, mux):

Callers

nothing calls this directly

Calls 2

debug2Function · 0.85
SockWrapperClass · 0.85

Tested by

no test coverage detected