File:  [Research Unix] / researchv9 / sys / h / inet / tcp_user.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

/*
 * 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

unix.superglobalmegacorp.com

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