MCPcopy Index your code
hub / github.com/pyload/pyload / forward

Function forward

module/forwarder.py:54–62  ·  view source on GitHub ↗
(source, destination)

Source from the content-addressed store, hash-verified

52
53
54def forward(source, destination):
55 string = ' '
56 while string:
57 string = source.recv(1024)
58 if string:
59 destination.sendall(string)
60 else:
61 #source.shutdown(socket.SHUT_RD)
62 destination.shutdown(socket.SHUT_WR)
63
64if __name__ == "__main__":
65 args = argv[1:]

Callers 1

forwardMethod · 0.90

Calls 3

recvMethod · 0.45
sendallMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected