9#include <daq/dataflow/SocketLib.h>
10#include <daq/dataflow/SocketManager.h>
19int main(
int argc,
char** argv)
22 printf(
"Wrong number of arguments\n");
27 SocketRecv recsock((
unsigned short)(atoi(argv[1])));
36 int is = sockman.examine();
38 printf(
"New connection made\n");
41 vector<int>& socklist = sockman.connected_socket_list();
42 printf(
"no. of connected sockets = %zu\n", socklist.size());
43 for (vector<int>::iterator it = socklist.begin(); it != socklist.end(); ++it) {
45 int isNow = read(fd, &datbuf, 4);
46 printf(
"Data read from sock %d (%d), ret = %d\n", fd, count++, isNow);
Abstract base class for different kinds of events.