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.

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

Link to this function

accept(lsock, local_info_hash, local_peer_id, expected_peer_id, our_extensions \\ [])

View Source

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.

Link to this function

connect(arg, local_info_hash, local_peer_id, expected_peer_id, our_extensions)

View Source

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.