A simple UDP echo server.
More...
#include <arpa/inet.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <llnetio/mudpi/mudpi.hpp>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <print>
#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
- SPDX-FileCopyrightText: 2021-2026 European Southern Observatory (ESO)
SPDX-License-Identifier: LGPL-3.0-only
◆ Error()
| void Error |
( |
const char * | msg | ) |
|
◆ 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