package
0.0.0-20190926050234-1a85859d9920
Repository: https://github.com/envsh/go-toxcore.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
.
.
Compares pk1 and pk2 with pk.
need?.
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
hex string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Usage:
c := NewTcpClient(...)
c.OnConfirmed = func(...){...}
..
No description provided by the author
TODO proxy.
No description provided by the author
.
.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Only used for bootstrap nodes */.
No description provided by the author
Friend request crypto packet ID.
Hardening crypto packet ID.
NAT ping crypto packet ID.
No description provided by the author
No description provided by the author
The number of "fake" friends to add (for optimization purposes and so our paths for the onion part are more random) */.
size of DHT ping arrays.
Ping interval in seconds for each random sending of a get nodes request.
No description provided by the author
Change symmetric keys every 2 hours to make paths expire eventually.
No description provided by the author
The timeout after which a node is discarded completely.
No description provided by the author
A list of the clients mathematically closest to ours.
No description provided by the author
No description provided by the author
Number of get node requests to send to quickly find close nodes.
No description provided by the author
This cannot be bigger than 256 */.
No description provided by the author
No description provided by the author
Maximum number of clients stored per friend.
No description provided by the author
No description provided by the author
name to SharedKeyInfo???----------------------------------------------------------------------------------*/ struct to store some shared keys so we don't have to regenerate them for each request.
I recommend you use a maximum of 96 bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The max number of nodes to send with send nodes.
TODO(irungentoo): this must depend on other variable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Cookie request packet */.
Cookie response packet */.
Encrypted data packet ID.
Crypto data packet */.
Crypto handshake packet */.
Get nodes request packet ID.
LAN discovery packet ID.
This type must remain within a single uint8.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
See: docs/Prevent_Tracking.txt and onion.{ch} */.
Ping request packet ID.
Ping response packet ID.
Send nodes response packet ID for other addresses.
No description provided by the author
No description provided by the author
Number of TCP connections used for onion purposes.
No description provided by the author
Used for TCP relays in Messenger struct (may need to be % 2 == 0)*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
65 */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
All packets starting with a byte in this range can be used for anything.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NOTE: Packet ids below 24 must never be used.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Number of lossy packet types at start of range reserved for A/V.
.
Ping interval in seconds for each node in our lists.
No description provided by the author
Ping timeout in seconds */.
The number of seconds for a non responsive node to become bad.
No description provided by the author
Interval in seconds between punching attempts*/.
The amount of recommended connections for each friend
NOTE: Must be at most (MAX_FRIEND_TCP_CONNECTIONS / 2) */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NOTE: only used by TCP_con */.
No description provided by the author
Connection is not connected but can be quickly reconnected in case it is needed.
No description provided by the author
Time until connection to friend gets killed (if it doesn't get locked withing that time) */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
frequency to ping connected nodes and timeout in seconds */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Redefinitions of variables for safe transfer over wire.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
.
No description provided by the author
No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
.
No description provided by the author
unique priority list.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
To RelayPK's TCPClient connections 1:N type TCPClientCon ??? type TCPRelayCon ???.
1:N.
To Friend's connections 1:MAX_FRIEND_TCP_CONNECTIONS type TCPFriendCon.
No description provided by the author
No description provided by the author
# Type aliases
type ByteArray = []byte //can not define method on unnamed type.
No description provided by the author
.