#include <assert.h>#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include <time.h>#include <arpa/inet.h>#include <unistd.h>#include <netinet/in.h>#include <sys/socket.h>#include <netdb.h>#include <fcntl.h>#include <sys/types.h>#include <hip/hip_stun_udp.h>Functions | |
| int | closesocket (int fd) |
| int | getErrno () |
| int | openPort (unsigned short port, unsigned int interfaceIp, int verbose) |
| int | getMessage (int fd, char *buf, int *len, unsigned int *srcIp, unsigned short *srcPort, int verbose) |
| int | sendMessage (int fd, char *buf, int l, unsigned int dstIp, unsigned short dstPort, int verbose) |
| int closesocket | ( | int | fd | ) |
| int getErrno | ( | ) |
| int getMessage | ( | int | fd, | |
| char * | buf, | |||
| int * | len, | |||
| unsigned int * | srcIp, | |||
| unsigned short * | srcPort, | |||
| int | verbose | |||
| ) |
| int openPort | ( | unsigned short | port, | |
| unsigned int | interfaceIp, | |||
| int | verbose | |||
| ) |
| int sendMessage | ( | int | fd, | |
| char * | buf, | |||
| int | l, | |||
| unsigned int | dstIp, | |||
| unsigned short | dstPort, | |||
| int | verbose | |||
| ) |
1.5.1