File:  [Research Unix] / researchv10no / netfs / libnetb / mixwhocalled.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/* 
 * who called me;
 * 4BSD socket-using machines
 * that also run research connection server
 */

#define	NULL	0

char *_rfcallsource();
char *_rfbsdpeer();

char *
_rfwhocalled(cfd)
int cfd;
{
	static char buf[100];	/* arbitrary */
	char *p;

	if ((p = _rfcallsource()) != NULL)
		return (p);
	if ((p = _rfbsdpeer(cfd)) != NULL) {
		strcpy(buf, "tcp!");
		strcat(buf, p);
		return (buf);
	}
	return (NULL);
}

unix.superglobalmegacorp.com

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