#include <time.h>#include "hip_stun_udp.h"Go to the source code of this file.
| #define FALSE 0 |
| #define MAX_MEDIA_RELAYS 500 |
| #define MAX_RTP_MSG_SIZE 1500 |
| #define MEDIA_RELAY_TIMEOUT 3*60 |
| #define STUN_MAX_MESSAGE_SIZE 2048 |
| #define STUN_MAX_STRING 256 |
| #define STUN_MAX_UNKNOWN_ATTRIBUTES 8 |
| #define STUN_PORT 3478 |
| #define STUN_VERSION "0.96" |
| #define TRUE 1 |
| typedef unsigned short UInt16 |
| typedef unsigned int UInt32 |
| typedef unsigned long long UInt64 |
| typedef unsigned char UInt8 |
| enum NatType |
| enum StunHmacStatus |
| void printIPv4Addr | ( | StunAddress4 * | ad | ) |
| void printUInt128 | ( | UInt128 | r | ) |
| void stunBuildReqSimple | ( | StunMessage * | msg, | |
| const StunAtrString * | username, | |||
| int | changePort, | |||
| int | changeIp, | |||
| unsigned int | id | |||
| ) |
| void stunCreatePassword | ( | const StunAtrString * | username, | |
| StunAtrString * | password | |||
| ) |
| void stunCreateUserName | ( | const StunAddress4 * | addr, | |
| StunAtrString * | username | |||
| ) |
| unsigned int stunEncodeMessage | ( | const StunMessage * | message, | |
| char * | buf, | |||
| unsigned int | bufLen, | |||
| const StunAtrString * | password, | |||
| int | verbose | |||
| ) |
| int stunFindLocalInterfaces | ( | UInt32 * | addresses, | |
| int | maxSize | |||
| ) |
| UInt64 stunGetSystemTimeSecs | ( | ) |
| void stunGetUserNameAndPassword | ( | const StunAddress4 * | dest, | |
| StunAtrString * | username, | |||
| StunAtrString * | password | |||
| ) |
| int stunInitServer | ( | StunServerInfo * | info, | |
| const StunAddress4 * | myAddr, | |||
| const StunAddress4 * | altAddr, | |||
| int | startMediaPort, | |||
| int | verbose | |||
| ) |
| NatType stunNatType | ( | StunAddress4 * | dest, | |
| int | verbose, | |||
| int * | preservePort, | |||
| int * | hairpin, | |||
| int | port, | |||
| StunAddress4 * | sAddr | |||
| ) |
| int stunOpenSocket | ( | StunAddress4 * | dest, | |
| StunAddress4 * | mappedAddr, | |||
| int | port, | |||
| StunAddress4 * | srcAddr, | |||
| int | verbose | |||
| ) |
| int stunOpenSocketPair | ( | StunAddress4 * | dest, | |
| StunAddress4 * | mappedAddr, | |||
| int * | fd1, | |||
| int * | fd2, | |||
| int | srcPort, | |||
| StunAddress4 * | srcAddr, | |||
| int | verbose | |||
| ) |
| int stunParseMessage | ( | char * | buf, | |
| unsigned int | bufLen, | |||
| StunMessage * | message, | |||
| int | verbose | |||
| ) |
| int stunParseServerName | ( | char * | serverName, | |
| StunAddress4 * | stunServerAddr | |||
| ) |
| int stunRand | ( | ) |
| int stunRandomPort | ( | ) |
| int stunServerProcess | ( | StunServerInfo * | info, | |
| int | verbose | |||
| ) |
| int stunServerProcessMsg | ( | char * | buf, | |
| unsigned int | bufLen, | |||
| StunAddress4 * | from, | |||
| StunAddress4 * | secondary, | |||
| StunAddress4 * | myAddr, | |||
| StunAddress4 * | altAddr, | |||
| StunMessage * | resp, | |||
| StunAddress4 * | destination, | |||
| StunAtrString * | hmacPassword, | |||
| int * | changePort, | |||
| int * | changeIp, | |||
| int | verbose | |||
| ) |
| void stunStopServer | ( | StunServerInfo * | info | ) |
| void stunTest | ( | StunAddress4 * | dest, | |
| int | testNum, | |||
| int | verbose, | |||
| StunAddress4 * | srcAddr | |||
| ) |
1.5.1