add dht and port getter functions

This commit is contained in:
2024-03-10 20:11:41 +01:00
parent 49ab40a1ba
commit 3b75a1c5d3
4 changed files with 40 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
// defines the full interface for tox
// HACK: raw
struct ToxI_raw {
static constexpr const char* version {"7"};
static constexpr const char* version {"8"};
virtual ~ToxI_raw(void) {}
@@ -103,9 +103,10 @@ struct ToxI_raw {
virtual Tox_Err_Friend_Custom_Packet toxFriendSendLossyPacket(uint32_t friend_number, const std::vector<uint8_t>& data) = 0;
virtual Tox_Err_Friend_Custom_Packet toxFriendSendLosslessPacket(uint32_t friend_number, const std::vector<uint8_t>& data) = 0;
// dht
// udp
// tcp
// dht and ports
virtual std::vector<uint8_t> toxSelfGetDHTID(void) = 0;
virtual std::tuple<std::optional<uint16_t>, Tox_Err_Get_Port> toxSelfGetUDPPort(void) = 0;
virtual std::tuple<std::optional<uint16_t>, Tox_Err_Get_Port> toxSelfGetTCPPort(void) = 0;
// group