From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 27-JUN-1989 00:47
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Re: Is anyone doing outbound FINGER code for WIN/TCP nameserver?

Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Mon, 26 JUN 89 20:45:18 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Mon, 26 Jun 89 20:20:23 PDT
Received: by ucbvax.Berkeley.EDU (5.61/1.37)
	id AA18841; Mon, 26 Jun 89 20:13:17 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 27 Jun 89 03:06:12 GMT
From: quanta.eng.ohio-state.edu!kcgl1.eng.ohio-state.edu!JONESD@tut.cis.ohio-state.edu  (David Jones)
Organization: Ohio State University
Subject: Re: Is anyone doing outbound FINGER code for WIN/TCP nameserver?
Message-Id: <2500@quanta.eng.ohio-state.edu>
References: <8906262337.AA08097@ucbvax.Berkeley.EDU>, <2156@orion.cf.uci.edu>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

I have a finger program that can use the Wollongong TCP/IP interface and it
uses the resolver routines provided by Wollongong.  The TCP/IP interface
is pretty well isolated from the rest of the program, so I can send the
Wollongong module to any interested parties (~700 lines).  It is written in
VAX FORTRAN and contains the following functions:

    Function TCP_CONNECT ( target, msg_len, err_message )
    Function TCP_WRITE ( buffer, msg_len, err_message )
    Function TCP_READ ( buf_len, buffer )
    Function TCP_DISCONNECT
    Function TCP_TELNET_LOCATION ( terminal, location )

It makes use of functions GETHOSTBYADDR and GETHOSTBYNAME in the library
TWG$TCP:[NETDIST.LIB]LIBNET.OLB.  The TELNET_LOCATION routine also uses
a subroutine written in MACRO to peek at the terminals UCB.

I haven't made a inbound server for the Wollongong software, but I have a
trick that I've implemented for other interfaces (Excelan, CMU/TEK).  I
use a simple gateway program to accept the connect on the TCP socket and
relay it to the local node as a DECnet inbound finger request.  The resulting
output is likewise relayed back to the TCP side.

David L. Jones               |      Phone:    (614) 292-6929
Ohio State Unviversity       |      Internet:
1971 Neil Ave. Rm. 406       |               jonesd@kcgl1.eng.ohio-state.edu
Columbus, OH 43210           |               jones-d@eng.ohio-state.edu

Disclaimer: A repudiation of a claim.

