MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / connect

Method connect

lib/speed.py:432–448  ·  view source on GitHub ↗

Connect to the host and port specified in __init__.

(self)

Source from the content-addressed store, hash-verified

430 self.timeout = timeout
431
432 def connect(self):
433 """Connect to the host and port specified in __init__."""
434 try:
435 self.sock = socket.create_connection(
436 (self.host, self.port),
437 self.timeout,
438 self.source_address
439 )
440 except (AttributeError, TypeError):
441 self.sock = create_connection(
442 (self.host, self.port),
443 self.timeout,
444 self.source_address
445 )
446
447 if self._tunnel_host:
448 self._tunnel()
449
450
451if HTTPSConnection:

Callers 15

create_connectionFunction · 0.45
initFunction · 0.45
saveFunction · 0.45
loadFunction · 0.45
incrementCountFunction · 0.45
getCountFunction · 0.45
getAllCountsFunction · 0.45
setPublicModeFunction · 0.45
setMetadataFunction · 0.45
getMetadataFunction · 0.45
saveContactFunction · 0.45

Calls 1

create_connectionFunction · 0.85

Tested by

no test coverage detected