RTC Toolkit  2.0.0
Functions | Variables
main.cpp File Reference

A simple UDP echo server usage: rtctkMudpiPublisherReceiver <port> More...

#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "mudpi.h"

Functions

void Error (const char *msg)
 
int Serve (char *serverhost, int portno, int limit, int verbose)
 
int ParseArgs (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
 

Detailed Description

A simple UDP echo server usage: rtctkMudpiPublisherReceiver <port>

Function Documentation

◆ Error()

void Error ( const char *  msg)

◆ ParseArgs()

int ParseArgs ( int  argc,
char **  argv,
char *&  hostname,
int &  portno,
int &  limit,
int &  verbose 
)

◆ Serve()

int Serve ( char *  serverhost,
int  portno,
int  limit,
int  verbose 
)

Check for a limited number of receives

Variable Documentation

◆ BUFSIZE

const int BUFSIZE = 8800