Proxy connection and UDP associate request

This commit is contained in:
orignal 2022-10-18 21:11:06 -04:00
parent 08fd32b3bf
commit f3aada9e1a
2 changed files with 148 additions and 0 deletions

View file

@ -121,6 +121,12 @@ namespace transport
void SendThroughProxy (const uint8_t * header, size_t headerLen, const uint8_t * headerX, size_t headerXLen,
const uint8_t * payload, size_t payloadLen, const boost::asio::ip::udp::endpoint& to);
void ProcessNextPacketFromProxy (uint8_t * buf, size_t len);
void ConnectToProxy ();
void HandshakeWithProxy ();
void ReadHandshakeWithProxyReply ();
void SendUDPAssociateRequest ();
void ReadUDPAssociateReply ();
void ReadUDPAssociateSocket (); // handle if closed by peer
private: