|
| bool | resip::stunParseMessage (char *buf, unsigned int bufLen, StunMessage &msg, bool verbose) |
| |
| void | resip::stunBuildReqSimple (StunMessage *msg, const StunAtrString &username, bool changePort, bool changeIp, unsigned int id) |
| |
| bool | resip::stunVerifyMessageIntegrity (const char *buf, unsigned int bufLen, const StunMessage &message, const StunAtrString &password) |
| | Verify the MESSAGE-INTEGRITY attribute of a parsed message against the supplied short-term credential password, using a constant-time comparison.
|
| |
| unsigned int | resip::stunEncodeMessage (const StunMessage &msg, char *buf, unsigned int bufLen, const StunAtrString &password, bool verbose) |
| |
| void | resip::stunCreateUserName (const StunAddress4 &source, StunAtrString *username) |
| |
| void | resip::stunGetUserNameAndPassword (const StunAddress4 &dest, StunAtrString *username, StunAtrString *password) |
| |
| void | resip::stunCreatePassword (const StunAtrString &username, StunAtrString *password) |
| |
| int | resip::stunRand () |
| |
| uint64_t | resip::stunGetSystemTimeSecs () |
| |
| bool | resip::stunParseServerName (char *software, StunAddress4 &stunServerAddr) |
| | find the IP address of a the specified stun server - return false is fails parse
|
| |
| bool | resip::stunParseHostName (char *peerName, uint32_t &ip, uint16_t &portVal, uint16_t defaultPort) |
| |
| bool | resip::stunInitServer (StunServerInfo &info, const StunAddress4 &myAddr, const StunAddress4 &altAddr, int startMediaPort, bool verbose) |
| | return true if all is OK Create a media relay and do the STERN thing if startMediaPort is non-zero
|
| |
| void | resip::stunStopServer (StunServerInfo &info) |
| |
| bool | resip::stunServerProcess (StunServerInfo &info, bool verbose) |
| | return true if all is OK
|
| |
| int | resip::stunFindLocalInterfaces (uint32_t *addresses, int maxSize) |
| | returns number of address found - take array or addres
|
| |
| bool | resip::stunTest (StunAddress4 &dest, int testNum, bool verbose, StunAddress4 *sAddr, unsigned long timeoutMs) |
| |
| NatType | resip::stunNatType (StunAddress4 &dest, bool verbose, bool *preservePort, bool *hairpin, int port, StunAddress4 *sAddr) |
| |
| ostream & | resip::operator<< (std::ostream &strm, const StunAddress4 &addr) |
| | prints a StunAddress
|
| |
| ostream & | resip::operator<< (ostream &strm, const UInt128 &r) |
| |
| ostream & | resip::operator<< (ostream &os, const StunMsgHdr &h) |
| |
| bool | resip::stunServerProcessMsg (char *buf, unsigned int bufLen, StunAddress4 &from, StunAddress4 &secondary, StunAddress4 &myAddr, StunAddress4 &altAddr, StunMessage *resp, StunAddress4 *destination, StunAtrString *hmacPassword, bool *changePort, bool *changeIp, bool verbose) |
| |
| int | resip::stunOpenSocket (StunAddress4 &dest, StunAddress4 *mapAddr, int port, StunAddress4 *srcAddr, bool verbose) |
| |
| bool | resip::stunOpenSocketPair (StunAddress4 &dest, StunAddress4 *mapAddr, int *fd1, int *fd2, int port, StunAddress4 *srcAddr, bool verbose) |
| |
| int | resip::stunRandomPort () |
| | return a random number to use as a port
|
| |
| void | resip::computeHmac (char *hmac, const char *input, int length, const char *key, int sizeKey) |
| |