[−][src]Module tox_packet::onion
Onion UDP Packets
Structs
FriendRequest | Friend request that can be enclosed in onion data packet and sent through onion path. |
InnerOnionAnnounceRequest | It's used for announcing ourselves to onion node and for looking for other announced nodes. |
InnerOnionDataRequest | It's used to send data requests to dht node using onion paths. |
OnionAnnounceRequest | Same as |
OnionAnnounceRequestPayload | Unencrypted payload of |
OnionAnnounceResponse | It's used to respond to |
OnionAnnounceResponsePayload | Unencrypted payload of |
OnionDataRequest | Same as |
OnionDataResponse | When onion node receives |
OnionDataResponsePayload | Unencrypted payload of |
OnionRequest0 | First onion request packet. It's sent from DHT node to the first node from
onion chain. Payload can be encrypted with either temporary generated
|
OnionRequest0Payload | Unencrypted payload of |
OnionRequest1 | Second onion request packet. It's sent from the first to the second node from
onion chain. Payload should be encrypted with temporary generated |
OnionRequest1Payload | Unencrypted payload of |
OnionRequest2 | Third onion request packet. It's sent from the second to the third node from
onion chain. Payload should be encrypted with temporary generated |
OnionRequest2Payload | Unencrypted payload of |
OnionResponse1 | First onion response packet. It's sent back from the second to the first node from onion chain. |
OnionResponse2 | Second onion response packet. It's sent back from the third to the second node from onion chain. |
OnionResponse3 | Third onion response packet. It's sent back from the destination node to the third node from onion chain. |
OnionReturn | Encrypted onion return addresses. Payload contains encrypted with symmetric
key |
Enums
AnnounceStatus | Represents the result of sent |
InnerOnionRequest | Onion requests that can be enclosed in onion packets and sent through onion path. |
InnerOnionResponse | Onion responses that can be enclosed in onion packets and sent through onion path. |
OnionDataResponseInnerPayload | Packet that is embedded in the payload of
|
Constants
MAX_DATA_REQUEST_SIZE | Maximum size in butes of Onion Data Request packet |
MAX_ONION_CLIENT_DATA_SIZE | Maximum size in bytes of Onion Data Response inner payload |
MAX_ONION_RESPONSE_PAYLOAD_SIZE | Maximum size in bytes of Onion Data Response payload |
MIN_ONION_DATA_RESPONSE_SIZE | Minimum size in bytes of Onion Data Response packet |
ONION_MAX_PACKET_SIZE | The maximum size of onion packet including public key, nonce, packet kind byte, onion return. |
ONION_RETURN_1_SIZE | Size of first |
ONION_RETURN_2_SIZE | Size of second |
ONION_RETURN_3_SIZE | Size of third |