effusion v0.2.0 Effusion.PWP.TCP.Socket View Source
Interface to Peer Wire Protocol (PWP) sockets.
Link to this section Summary
Functions
Accepts an incoming connection a listening socket,
and performs a PWP handshake as the given peer
.
Get the address that the PWP socket is connected to.
Closes a PWP socket.
Connect to a server described by peer
.
Decode a binary message.
Set up a socket to listen on port
on the local host.
Receives a message from a socket in passive mode.
Send a message on a socket.
Link to this section Functions
accept(lsock, local_info_hash, local_peer_id, expected_peer_id, our_extensions \\ [])
View SourceAccepts an incoming connection a listening socket,
and performs a PWP handshake as the given peer
.
Get the address that the PWP socket is connected to.
Closes a PWP socket.
connect(arg, local_info_hash, local_peer_id, expected_peer_id, our_extensions)
View SourceConnect to a server described by peer
.
Decode a binary message.
Set up a socket to listen on port
on the local host.
Receives a message from a socket in passive mode.
Send a message on a socket.