6 #ifndef OPENER_USER_CONF_H_
7 #define OPENER_USER_CONF_H_
24 #include <netinet/in.h>
25 #include <sys/socket.h>
26 #include <arpa/inet.h>
27 #include <sys/select.h>
41 #define OPENER_CIP_NUM_APPLICATION_SPECIFIC_CONNECTABLE_OBJECTS 1
46 #define OPENER_CIP_NUM_EXPLICIT_CONNS 6
53 #define OPENER_CIP_NUM_EXLUSIVE_OWNER_CONNS 1
60 #define OPENER_CIP_NUM_INPUT_ONLY_CONNS 1
64 #define OPENER_CIP_NUM_INPUT_ONLY_CONNS_PER_CON_PATH 3
71 #define OPENER_CIP_NUM_LISTEN_ONLY_CONNS 1
75 #define OPENER_CIP_NUM_LISTEN_ONLY_CONNS_PER_CON_PATH 3
82 #define OPENER_MESSAGE_DATA_REPLY_BUFFER 100
86 #define OPENER_NUMBER_OF_SUPPORTED_SESSIONS 20
90 static const MilliSeconds kOpenerTimerTickInMilliSeconds = 10;
92 #ifdef OPENER_WITH_TRACES
96 #define LOG_TRACE(...) fprintf(stderr,__VA_ARGS__)
104 #define OPENER_ASSERT(assertion) \
106 if( !(assertion) ) { \
107 LOG_TRACE("Assertion \"%s\" failed: file \"%s\", line %d\n", \
120 #define OPENER_ASSERT(assertion) assert(assertion);
125 #define OPENER_ASSERT(assertion)
147 #define PC_OPENER_ETHERNET_BUFFER_SIZE 512
unsigned long MilliSeconds