File: TCP.h

package info (click to toggle)
netpipe 2.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 160 kB
  • ctags: 109
  • sloc: ansic: 979; makefile: 113
file content (23 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
  Define the protocol structure to be used by NetPIPE for TCP.

  $Id: TCP.h,v 1.3 1998/09/24 15:17:44 ghelmer Exp $
  */

#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>

typedef struct protocolstruct ProtocolStruct;
struct protocolstruct
{
    struct sockaddr_in      sin1,   /* socket structure #1              */
                            sin2;   /* socket structure #2              */
    int                     nodelay;  /* Flag for TCP nodelay           */
    struct hostent          *addr;    /* Address of host                */
    int                     sndbufsz, /* Size of TCP send buffer        */
                            rcvbufsz; /* Size of TCP receive buffer     */
};