11 #include <sys/select.h>
12 #include <sys/types.h>
13 #include <sys/socket.h>
15 #include "carma/szaarrayutils/tcpip.h"
30 fd_ = udp_server_sock(PMAC_HOST_PORT, 1);
33 inline void serviceMsgQ()
38 FD_SET(fd_, &read_fds);
40 while(select(fd_+1, &read_fds, NULL, NULL, NULL) > 0) {
45 inline void processEthCmd()
47 recv(fd_, (
void*) &cmd_,
sizeof(PmacCommand::EthCmd)+PMAC_DATA_MAX_LEN, 0);
48 cout <<
"Got a message: ";
49 fprintf(stdout,
"%x\n", cmd_.info_.request_);
56 PmacCommand::EthCmd cmd_;
Tagged: Thu Nov 13 16:53:43 UTC 2003.
Tagged: Thu Nov 13 16:53:44 UTC 2003.