Annotation of researchv9/sys/h/inet/tcp_user.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * things users need to know to talk to /dev/tcp*
        !             3:  * open a free tcp device, write a tcpuser struct on it,
        !             4:  * then wait for a tcpreply.
        !             5:  */
        !             6: 
        !             7: /* the following is defined in kernel .h's */
        !             8: #ifndef KERNEL
        !             9: #include <sys/inet/in.h>
        !            10: #include <sys/inet/tcp.h>
        !            11: #endif
        !            12: 
        !            13: struct tcpuser{
        !            14:        int code;               /* request or reply code */
        !            15:        tcp_port lport, fport;
        !            16:        in_addr laddr, faddr;
        !            17:        int param;              /* options or device number */
        !            18: };
        !            19: 
        !            20: #define TCPC_LISTEN    1
        !            21: #define TCPC_CONNECT   2
        !            22: #define TCPC_OK                3
        !            23: #define TCPC_SORRY     4

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.