#include "Simulator.h"#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <fcntl.h>#include <poll.h>#include <math.h>#include <string.h>#include <time.h>#include <sys/time.h>#include <sys/timex.h>#include "roc/Message.h"
Go to the source code of this file.
Defines | |
| #define | NODE_FORBIDDEN 0 |
| #define | NODE_MASTER 1 |
| #define | NODE_CONTROL 2 |
| #define | NODE_OBSERVER 3 |
| #define | NODE_SKIP 4 |
Functions | |
| double | get_clock () |
| bool | SetNonBlockSocket (int fd) |
| int | StartUdp (int &portnum, int portmin=0, int portmax=0) |
| const char * | IpToStr (in_addr_t src_ip) |
Variables | |
| struct sc_config | gC |
| struct sc_data | gD |
| #define NODE_CONTROL 2 |
Definition at line 330 of file Simulator.cxx.
Referenced by UdpSimulator::OnRawData(), and UdpSimulator::PutReg().
| #define NODE_FORBIDDEN 0 |
Definition at line 328 of file Simulator.cxx.
Referenced by UdpSimulator::OnRawData().
| #define NODE_MASTER 1 |
Definition at line 329 of file Simulator.cxx.
Referenced by UdpSimulator::mainLoop(), UdpSimulator::OnRawData(), and UdpSimulator::PutReg().
| #define NODE_OBSERVER 3 |
Definition at line 331 of file Simulator.cxx.
| #define NODE_SKIP 4 |
Definition at line 332 of file Simulator.cxx.
Referenced by UdpSimulator::OnRawData().
| double get_clock | ( | ) |
Definition at line 23 of file Simulator.cxx.
Referenced by UdpSimulator::checkCtrlOperationAllowed(), UdpSimulator::mainLoop(), UdpSimulator::OnRawData(), UdpSimulator::PutReg(), and UdpSimulator::UdpSimulator().
| const char* IpToStr | ( | in_addr_t | src_ip | ) |
Definition at line 90 of file Simulator.cxx.
Referenced by UdpSimulator::checkCtrlOperationAllowed().
| bool SetNonBlockSocket | ( | int | fd | ) |
Definition at line 49 of file Simulator.cxx.
Referenced by StartUdp().
| int StartUdp | ( | int & | portnum, | |
| int | portmin = 0, |
|||
| int | portmax = 0 | |||
| ) |
Definition at line 64 of file Simulator.cxx.
References SetNonBlockSocket().
Referenced by UdpSimulator::initNewSockets(), roc::UdpDevice::initUdp(), and roc::UdpDevice::UdpDevice().
Definition at line 19 of file Simulator.cxx.
Referenced by UdpSimulator::GetReg(), UdpSimulator::initNewSockets(), UdpSimulator::mainLoop(), UdpSimulator::PutReg(), UdpSimulator::resetSimulator(), and UdpSimulator::UdpSimulator().
Definition at line 21 of file Simulator.cxx.
Referenced by UdpSimulator::checkCtrlOperationAllowed(), UdpSimulator::GetReg(), UdpSimulator::mainLoop(), UdpSimulator::makeSysMessage(), UdpSimulator::OnRawData(), UdpSimulator::processDataRequest(), UdpSimulator::PutReg(), UdpSimulator::sendDataPacket(), and UdpSimulator::UdpSimulator().
1.7.1