elemy-utils 1.0.0
Data Fields
_conn_param_t Struct Reference

#include <el_utils.h>

Collaboration diagram for _conn_param_t:
Collaboration graph
[legend]

Data Fields

char * id
 
CONN_ROLE_T cn_role
 connection identificator More...
 
int slave_id
 connection role master?slave CR_MASTER/CR_SLAVE More...
 
CONN_TYPE_T cn_type
 
union {
   struct {
      char *   node
 
      char *   serv
 node: "1.2.3.4", "::1", "mail.ru" More...
 
      IP_TYPES_T   ip_type
 service : "80", "http" More...
 
      int   family
 
      int   sa_len
 
      sau_static_t   sau
 
   }   tcp
 
   struct {
      char *   dev
 
      int   speed
 serial device /dev/ttyS1, /dev/ttyUSB1 More...
 
      int   cd
 connection speed 9600, 57600, 115200 More...
 
      int   dtr
 0,0x30,0x31 -->no change, set low, set HIGH More...
 
      int   dsr
 0,0x30,0x31 -->no change, set low, set HIGH More...
 
      int   cts
 0,0x30,0x31 -->no change, set low, set HIGH More...
 
      int   rts
 0,0x30,0x31 -->no change, set low, set HIGH More...
 
   }   rtu
 
}; 
 CT_TCP/CT_RTU. More...
 

Field Documentation

◆ 

union { ... } @1

CT_TCP/CT_RTU.

◆ cd

int cd

connection speed 9600, 57600, 115200

◆ cn_role

CONN_ROLE_T cn_role

connection identificator

◆ cn_type

CONN_TYPE_T cn_type

◆ cts

int cts

0,0x30,0x31 -->no change, set low, set HIGH

◆ dev

char* dev

◆ dsr

int dsr

0,0x30,0x31 -->no change, set low, set HIGH

◆ dtr

int dtr

0,0x30,0x31 -->no change, set low, set HIGH

◆ family

int family

◆ id

char* id

◆ ip_type

IP_TYPES_T ip_type

service : "80", "http"

◆ node

char* node

◆ rts

int rts

0,0x30,0x31 -->no change, set low, set HIGH

◆ 

struct { ... } rtu

◆ sa_len

int sa_len

◆ sau

◆ serv

char* serv

node: "1.2.3.4", "::1", "mail.ru"

◆ slave_id

int slave_id

connection role master?slave CR_MASTER/CR_SLAVE

◆ speed

int speed

serial device /dev/ttyS1, /dev/ttyUSB1

◆ 

struct { ... } tcp

The documentation for this struct was generated from the following file: