/common/home/bel/bella/lnx/exports/build/current/all/sys-tools/is-intf/i_isintf.h

00001 #ifndef I_ISINTF_H
00002 #define I_ISINTF_H
00003 
00004 #include "sys/types.h"
00005 
00006 #define IS_GET_PORT 1
00007 #define IS_GET_HOST 2
00008 
00013 #define NET_IS_HOST_ENV "NET_IS_HOST"
00014 
00016 
00020 #define NET_IS_PORT_ENV "NET_IS_PORT"
00021 
00023 #define ISRVR_TCP_PORT 5013
00024 
00025 #define ISRVR_UDP_PORT 5012
00026 
00027 int is_request_decode( unsigned char *reqbuf, int buflen, int *preqid);
00028 
00029 int is_request_port_encode( char *proc, int proclen, unsigned char *reqbuf,int buflen);
00030 int is_request_port_decode( unsigned char *reqbuf, int buflen, char *proc, int *proclen);
00031 int is_reply_port_decode( unsigned char *replybuf, size_t buflen, is_port_t *pi);
00032 int is_reply_port_encode( is_port_t *pi, unsigned char *replybuf, int buflen);
00033 
00034 int is_request_host_encode( char *hostname, int hostnamelen, 
00035     unsigned char *reqbuf,int buflen);
00036 int is_request_host_decode( unsigned char *reqbuf, int buflen, char *proc, 
00037     int *hostnamelen);
00038 int is_reply_host_decode( unsigned char *replybuf, size_t buflen, is_host_t *ph);
00039 int is_reply_host_encode( is_host_t *pi, unsigned char *replybuf, int buflen);
00040 
00041 #endif

Generated on 4 Mar 2014 for isintf by  doxygen 1.4.7