247 |
} *Command_T; |
} *Command_T; |
248 |
|
|
249 |
|
|
250 |
|
/** Defines a protocol object with protocol functions */ |
251 |
|
typedef struct myprotocol { |
252 |
|
const char *name; /**< Protocol name */ |
253 |
|
int(*check)(Socket_T); /**< Service verification function */ |
254 |
|
} *Protocol_T; |
255 |
|
|
256 |
|
|
257 |
/** Defines a port object */ |
/** Defines a port object */ |
258 |
typedef struct myport { |
typedef struct myport { |
259 |
volatile int socket; /**< Socket used for connection */ |
volatile int socket; /**< Socket used for connection */ |
276 |
} SSL; |
} SSL; |
277 |
|
|
278 |
/**< Object used for testing a port's service */ |
/**< Object used for testing a port's service */ |
279 |
struct myprotocol { |
Protocol_T protocol; |
|
const char *name; /**< Protocol name */ |
|
|
int(*check)(Socket_T); /**< Service verification function */ |
|
|
} *protocol; |
|
280 |
|
|
281 |
/** For internal use */ |
/** For internal use */ |
282 |
struct myport *next; /**< next port in chain */ |
struct myport *next; /**< next port in chain */ |
283 |
} *Port_T; |
} *Port_T; |
284 |
|
|
285 |
|
|
|
/** Defines a protocol object with protocol functions */ |
|
|
typedef struct myprotocol *Protocol_T; |
|
|
|
|
|
|
|
286 |
typedef struct mydependant { |
typedef struct mydependant { |
287 |
char *dependant; /**< name of dependant service */ |
char *dependant; /**< name of dependant service */ |
288 |
|
|