File:  [Research Unix] / researchv8dc / 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, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 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 cmd;
	tcp_port sport, dport;
	in_addr src, dst;
};
#define TCPC_LISTEN	1
#define TCPC_CONNECT	2

struct tcpreply{
	int reply;
	/* for listen: */
	tcp_port sport, dport;
	in_addr src, dst;
	int tcpdev; 	/* minor device # */
};
#define TCPR_OK		1
#define TCPR_SORRY	2

unix.superglobalmegacorp.com

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