RTC Toolkit
1.0.0
|
A simple UDP echo server usage: udpreader <port> More...
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <pthread.h>
#include <vector>
#include <string>
#include "mudpi.h"
Functions | |
void | error (const char *msg) |
int | serve (char *serverhost, int portno, int limit, int verbose) |
int | parse_args (int argc, char **argv, char *&hostname, int &portno, int &limit, int &verbose) |
int | main (int argc, char **argv) |
Application entrypoint. More... | |
Variables | |
const int | BUFSIZE = 8800 |
A simple UDP echo server usage: udpreader <port>
void error | ( | const char * | msg | ) |
int parse_args | ( | int | argc, |
char ** | argv, | ||
char *& | hostname, | ||
int & | portno, | ||
int & | limit, | ||
int & | verbose | ||
) |
int serve | ( | char * | serverhost, |
int | portno, | ||
int | limit, | ||
int | verbose | ||
) |
Check for a limited number of receives
const int BUFSIZE = 8800 |