File:  [Research Unix] / researchv10dc / lsys / sys / inet / tcp_user.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

/*
 * things users need to know to talk to /dev/tcp*
 * open a free tcp device, write a tcpuser struct on it,
 * then wait for a tcpreply.
 */

/* the following is defined in kernel .h's */
#ifndef KERNEL
#include <sys/inet/in.h>
#include <sys/inet/tcp.h>
#endif

struct tcpuser{
	int code;		/* request or reply code */
	tcp_port lport, fport;
	in_addr laddr, faddr;
	int param;		/* options or device number */
};

#define TCPC_LISTEN	1
#define TCPC_CONNECT	2
#define TCPC_OK		3
#define TCPC_SORRY	4	/* unknown error */
#define TCPC_BADDEV	5	/* tcp device is bad */
#define TCPC_NOROUTE	6	/* no routing to dest */
#define TCPC_BADLOCAL	7	/* user specified bad local addr */
#define TCPC_BOUND	8	/* address already bound */

unix.superglobalmegacorp.com

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