Defines | Functions | Variables

simulator/Simulator.cxx File Reference

(r4864/r4190)

#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"
Include dependency graph for Simulator.cxx:

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 Documentation

#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
#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().


Function Documentation

double get_clock (  ) 
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 
)

Variable Documentation

struct sc_config gC
struct sc_data gD