Documentation
¶
Index ¶
- Constants
- func BudgeUp(b slice.Bytes, start slice.Cursor) (o slice.Bytes)
- func FormatReply(header, res slice.Bytes, ciphers [3]sha256.Hash, nonces [3]nonce.IV) (rb slice.Bytes)
- type Client
- func (cl *Client) Cleanup()
- func (cl *Client) FindCloaked(clk cloak.PubKey) (hdr *prv.Key, pld *prv.Key, sess *traffic.Session, identity bool)
- func (cl *Client) RegisterConfirmation(hook confirm.Hook, cnf nonce.ID)
- func (cl *Client) Send(addr *netip.AddrPort, b slice.Bytes)
- func (cl *Client) Shutdown()
- func (cl *Client) Start()
Constants ¶
View Source
const ( ReverseLayerLen = reverse.Len + crypt.Len ReverseHeaderLen = 3 * ReverseLayerLen )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*node.Node
node.Nodes
sync.Mutex
*confirm.Confirms
response.Hooks
*signer.KeySet
ShuttingDown atomic.Bool
qu.C
}
func (*Client) Cleanup ¶
func (cl *Client) Cleanup()
Cleanup closes and flushes any resources the client opened that require sync in order to reopen correctly.
func (*Client) FindCloaked ¶
func (cl *Client) FindCloaked(clk cloak.PubKey) (hdr *prv.Key, pld *prv.Key, sess *traffic.Session, identity bool)
FindCloaked searches the client identity key and the sessions for a match. It returns the session as well, though not all users of this function will need this.
func (*Client) RegisterConfirmation ¶
Click to show internal directories.
Click to hide internal directories.