ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbSIO.hpp File Reference
#include <ngc/core/ngcb.h>
#include <ngc/core/ngcbSocket.h>
#include <poll.h>

Go to the source code of this file.

Classes

struct  ngcb_port_t
 
class  ngcbSIO
 

Macros

#define ngcbSIO_MAX_CON   16
 
#define ngcbSIO_MAX_PORT   4
 
#define ngcbSIO_MAX_FD   64
 
#define ngcbSIO_NFDS   (ngcbSIO_MAX_FD + (ngcbSIO_MAX_CON * 2) + ngcbSIO_MAX_PORT + 4)
 
#define ngcbSIO_CMD_EXIT   0x00000010
 
#define ngcbSIO_CMD_RESET   0x00000020
 
#define ngcbSIO_CMD_PING   0x00000040
 
#define ngcbSIO_CMD_CONNECT   0x00000080
 
#define ngcbSIO_CMD_DISCONNECT   0x00000100
 
#define ngcbSIO_CMD_TIMEOUT   0x00000200
 
#define ngcbSIO_CMD_SIMULAT   0x00000400
 
#define ngcbSIO_CMD_STOPSIM   0x00000800
 
#define ngcbSIO_CMD_STATUS   0x00001000
 
#define ngcbSIO_PROTOCOL_GENERIC   0
 
#define ngcbSIO_PROTOCOL_BIN   1
 
#define ngcbSIO_PROTOCOL_ASCII   2
 
#define ngcbSIO_PROTOCOL_ASCII0   3
 

Detailed Description

Macro Definition Documentation

◆ ngcbSIO_CMD_CONNECT

#define ngcbSIO_CMD_CONNECT   0x00000080

◆ ngcbSIO_CMD_DISCONNECT

#define ngcbSIO_CMD_DISCONNECT   0x00000100

◆ ngcbSIO_CMD_EXIT

#define ngcbSIO_CMD_EXIT   0x00000010

◆ ngcbSIO_CMD_PING

#define ngcbSIO_CMD_PING   0x00000040

◆ ngcbSIO_CMD_RESET

#define ngcbSIO_CMD_RESET   0x00000020

◆ ngcbSIO_CMD_SIMULAT

#define ngcbSIO_CMD_SIMULAT   0x00000400

◆ ngcbSIO_CMD_STATUS

#define ngcbSIO_CMD_STATUS   0x00001000

◆ ngcbSIO_CMD_STOPSIM

#define ngcbSIO_CMD_STOPSIM   0x00000800

◆ ngcbSIO_CMD_TIMEOUT

#define ngcbSIO_CMD_TIMEOUT   0x00000200

◆ ngcbSIO_MAX_CON

#define ngcbSIO_MAX_CON   16

Maximum number of command/event client connections (each)

◆ ngcbSIO_MAX_FD

#define ngcbSIO_MAX_FD   64

Maximum number of file descriptors attached to the file descriptor event call-back

◆ ngcbSIO_MAX_PORT

#define ngcbSIO_MAX_PORT   4

Maximum number of service ports

◆ ngcbSIO_NFDS

#define ngcbSIO_NFDS   (ngcbSIO_MAX_FD + (ngcbSIO_MAX_CON * 2) + ngcbSIO_MAX_PORT + 4)

◆ ngcbSIO_PROTOCOL_ASCII

#define ngcbSIO_PROTOCOL_ASCII   2

◆ ngcbSIO_PROTOCOL_ASCII0

#define ngcbSIO_PROTOCOL_ASCII0   3

◆ ngcbSIO_PROTOCOL_BIN

#define ngcbSIO_PROTOCOL_BIN   1

◆ ngcbSIO_PROTOCOL_GENERIC

#define ngcbSIO_PROTOCOL_GENERIC   0