00001 #ifndef _I_ISRVR_H 00002 #define _I_ISRVR_H 00003 00004 #include "ix_tools.h" 00005 #include "xfer.h" 00006 00007 00008 #define MAX_SERVICES 8 00009 00010 typedef struct 00011 { 00012 char *myproc; 00013 int myudpport; 00014 int mytcpport; 00015 int mqevid; 00016 ix_hash_t *ph; 00017 ix_hash_t *phost; 00018 int daemon; 00019 char *config; 00020 char *path; 00021 char *logfn; 00022 int logfd; 00023 is_port_t * port_offset_p; 00024 int port_offset; 00025 int tcpport_max; 00026 int udpport_max; 00027 int init; 00028 int verbose; 00029 xf_refl_t *service_l[MAX_SERVICES]; 00030 xf_refl_t *pnameinfo_refl; 00031 ix_cs_t *pcs; 00032 } gl_data_t; 00033 00034 #define IX_V_HOST 0x02 00035 #define IX_V_PORT 0x04 00036 #define IX_V_MSG 0x08 00037 00038 int read_conf( ix_hash_t *ph, ix_hash_t *phost, is_port_t **p, char *fn ); 00039 int read_proc_port( char *proc, is_port_t *pi ); 00040 int save_proc_port( char *proc, is_port_t *pi ); 00041 00042 #endif 00043