• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2   Define the protocol structure to be used by NetPIPE for TCP.
3 
4   2002/03/18 --- Modified for IPv6 - Robbie Williamson (robbiew@us.ibm.com)
5   */
6 
7 #include <netdb.h>
8 #include <sys/socket.h>
9 #include <netinet/in.h>
10 #include <netinet/tcp.h>
11 #include <arpa/inet.h>
12 
13 typedef struct protocolstruct ProtocolStruct;
14 struct protocolstruct
15 {
16     struct sockaddr_in6     sin1,   /* socket structure #1              */
17                             sin2;   /* socket structure #2              */
18     int                     nodelay;  /* Flag for TCP nodelay           */
19     struct addrinfo         *addr;    /* Address of host                */
20     struct addrinfo         *server_addr; /* Address of server          */
21     int                     sndbufsz, /* Size of TCP send buffer        */
22                             rcvbufsz; /* Size of TCP receive buffer     */
23 };
24 
25