SECTION 10
Host Application Program
10-14 6950 Enterprise Gateway Server User’s Guide
/*
** linked list management stuff
*/
struct LIST {
unsigned int fdin;
unsigned int fdout;
char host[32];
char ip[32];
char sic[8];
unsigned short port;
unsigned msgcount;
struct LIST *next;
};
struct LIST *head; /* first pointer in linked list */
struct LIST *tail; /* last pointer in linked list */
struct LIST *curr; /* always points to the current socket
pointer */
int main(int argc,char **argv );
int process_port(void);
int process_socket(void);
int add_fd(unsigned int fd,char *host,char *ip);
int delete_fd(unsigned int fd);
/*****/
main(argc, argv)
int argc;
char
*argv[];
{
struct sockaddr_in serv_addr;
int x=0;
#ifdef WIN32
WSADATA WsaData;
#endif
Summary of Contents for 6950 EGS
Page 1: ...6950 Enterprise Gateway Server USER S GUIDE PN 961 047 091 Revision D September 1999 ...
Page 38: ...SECTION 3 Installation 3 22 6950 Enterprise Gateway Server User s Guide ...
Page 44: ...SECTION 4 Connecting to the 6950 EGS 4 6 6950 Enterprise Gateway Server User s Guide ...
Page 74: ...SECTION 5 Configuring Network Options 5 30 6950 Enterprise Gateway Server User s Guide ...
Page 138: ...SECTION 10 Host Application Program 10 24 6950 Enterprise Gateway Server User s Guide ...
Page 144: ...INDEX Index 6 6950 Enterprise Gateway Server User s Guide ...