A simple UDP echo server.
More...
#include <arpa/inet.h>
#include <llnetio/mudpi/mudpi.hpp>
#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>
|
| void | Error (const char *msg) |
| |
| int | Serve (const char *serverhost, int portno, const char *multicast_group, int limit, int expected_sample_id_increment, int verbose) |
| |
| int | ParseArgs (int argc, char **argv, char *&hostname, int &portno, char *&multicast_group, int &limit, int &expected_sample_id_increment, int &verbose) |
| |
| int | main (int argc, char **argv) |
| | Application entrypoint.
|
| |
A simple UDP echo server.
usage: rtctkMudpiPublisherReceiver <port>
- Copyright
- (c) Copyright ESO 2021-2025 All Rights Reserved ESO (eso.org) is an Intergovernmental Organisation, and therefore special legal conditions apply.
◆ MudpiHeader
◆ MudpiTrailer
◆ Error()
| void Error |
( |
const char * | msg | ) |
|
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
◆ ParseArgs()
| int ParseArgs |
( |
int | argc, |
|
|
char ** | argv, |
|
|
char *& | hostname, |
|
|
int & | portno, |
|
|
char *& | multicast_group, |
|
|
int & | limit, |
|
|
int & | expected_sample_id_increment, |
|
|
int & | verbose ) |
◆ Serve()
| int Serve |
( |
const char * | serverhost, |
|
|
int | portno, |
|
|
const char * | multicast_group, |
|
|
int | limit, |
|
|
int | expected_sample_id_increment, |
|
|
int | verbose ) |
Check for a limited number of receives
◆ BUFSIZE