MCPcopy Create free account
hub / github.com/ElementsProject/lightning / connect_unix

Function connect_unix

tests/test_misc.py:891–898  ·  view source on GitHub ↗
(socket_path: str)

Source from the content-addressed store, hash-verified

889
890
891def connect_unix(socket_path: str):
892 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
893 try:
894 sock.connect(socket_path)
895 except OSError as err:
896 if err.args[0] == 'AF_UNIX path too long' and os.uname()[0] == 'Linux':
897 sock.connect(os.path.join('/proc/self/cwd', os.path.relpath(socket_path)))
898 return sock
899
900
901def test_multirpc(node_factory):

Callers 4

test_multirpcFunction · 0.85
test_multiplexed_rpcFunction · 0.85
test_malformed_rpcFunction · 0.85
test_check_commandFunction · 0.85

Calls 2

joinMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected