Provided by: manpages-zh_1.5.2-1_all bug

NAME

       tcp -  TCP

 SYNOPSIS
       #include <sys/socket.h>
       #include <netinet/in.h>
       tcp_socket = socket(PF_INET, SOCK_STREAM, 0);

 DESCRIPTION
        RFC973, RFC1122  RFC2001  NewReno  SACK ip(7) TCP  (checksum) TCP

          TCP    (outgoing)   TCP  connect(2)   (incoming)  bind(2)  listen(2)
       accept(2).   (incoming) accept connect

       Linux 2.2  RFC1323 TCP  TCP net.core.wmem_default net.core.rmem_default
       sysctl   ,   SO_SNDBUF  SO_RCVBUF  net.core.rmem_max  net.core.wmem_max
       sysctl socket(7).

       TCP send(2).  MSG_OOB SIGURG  ioctl FIOCSPGRP FIOCSETOWN SO_OOBINLINE ,
       ( SIOCATMARK ioctl ), sendmsg(2) MSG_OOB

 ADDRESS FORMATS
       TCP  IP ( ip(7)).  ip(7)  TCP.  TCP

 SYSCTLS
        /proc/sys/net/ipv4/* sysctl(2)  sysctl.   IP sysctl  TCP; ip(7).

       tcp_window_scaling
               RFC1323  TCP .

       tcp_sack
               RFC2018  TCP .

       tcp_timestamps
               RFC1323  TCP .

       tcp_fin_timeout
                TCP

       tcp_keepalive_probes
               TCP .  SO_KEEPALIVE .

       tcp_keepalive_time
                10800 (3 )

       tcp_max_ka_probes

       tcp_stdurg
               TCP  RFC973  BSD  RFC973

       tcp_syncookies
               TCP (syncookie) CONFIG_SYN_COOKIES . (Syncookie) (syncookie)

       tcp_max_syn_backlog
                (backlog)  Linux 2.2 , listen(2) (backlog) ( SYN_RECV ) sysctl
              Linux (syncookie)

       tcp_retries1
               TCP

       tcp_retries2
               TCP

       tcp_syn_retries
              (SYN packet) 255(outgoing) (incoming) tcp_retries1

       tcp_retrans_collapse
                TCP (BUG)

 SOCKET OPTIONS
        TCP getsockopt(2) setsockopt(2) SOL_TCP .  SOL_IP  TCP ip(7).

       TCP_NODELAY
               Nagle

       TCP_MAXSEG
               TCP  MSS MTU

       TCP_CORK
               sendfile(2) TCP_NODELAY .

 IOCTLS
        ioctl ioctl(2) :

              int value;
              error = ioctl(tcp_socket, ioctl_type, &value);

       FIONREAD

       SIOCATMARK
               0 SO_OOBINLINE

       TIOCOUTQ
              (socket)

 ERROR HANDLING
       TCP ETIMEDOUT

        SOL_IP IP_RECVERR  (incoming) - TCP

 NOTES
        SIGPIPE SO_KEEPOPEN

       TCP (out-of-band);  Linux ( SO_OOBINLINE ). BSD .

       Linux  BSD  RFC1122 , tcp_stdurg sysctl .

 ERRORS
       EPIPE

       ETIMEDOUT

       EAFNOTSUPPORT
               sin_family AF_INET

        ip(7)  TCP .

 BUGS

 VERSIONS
        sysctl  Linux 2.2 IP_RECVERR  Linux 2.2 TCP_CORK  2.2 .

 SEE ALSO
       socket(7), socket(2), ip(7), sendmsg(2), recvmsg(2).
       RFC793  TCP .
       RFC1122  TCP  Nagle
       RFC2001  TCP

[]

       LetBright <letbright@netease.com>

[]

       2000/10/21

linuxman:

       http://cmpp.linuxforum.net