1 /* 2 Define the protocol structure to be used by NetPIPE for TCP. 3 */ 4 5 #include <netdb.h> 6 #include <sys/socket.h> 7 #include <netinet/in.h> 8 #include <netinet/tcp.h> 9 #include <arpa/inet.h> 10 11 typedef struct protocolstruct ProtocolStruct; 12 struct protocolstruct 13 { 14 struct sockaddr_in sin1, /* socket structure #1 */ 15 sin2; /* socket structure #2 */ 16 int nodelay; /* Flag for TCP nodelay */ 17 struct hostent *addr; /* Address of host */ 18 int sndbufsz, /* Size of TCP send buffer */ 19 rcvbufsz; /* Size of TCP receive buffer */ 20 }; 21 22