Copyright (c) 1996, SAS Institute Inc. Unpublished - All Rights Reserved FILE NAME DESCRIPTION -------- -------------------------------------------------------------- FINGER.C Sample TCPIP Finger client, demonstrating typical socket functions. This is a limited finger client. GETHENT.C TCPIP sample which demonstrates various resolver functions, including: sethostent(), gethostent(), and endhostent(), and processing data in the ETC.HOSTS file. GETHID.C TCPIP sample demonstrating the function, gethostid(), which returns the 32-bit IP address for the local host. GETHNM.C TCPIP sample demonstrating the function, gethostname() which returns the hostname, as defined on the local host. GETSENT.C TCPIP sample which demonstrates processing information in the ETC.SERVICES file. GHBNM.C TCPIP sample demonstrating the resolver function gethostbyname(), which returns a structure containing the an IP address that correlates to a specific hostname. Refer to the RESINIT sample for tracing gethostbyname(). GSBNM.C TCPIP sample which reads the ETC.SERVICES file, and returns a structure, that correlates to a specific "service" and "protocol". LC370CLG.J SAS/C Compile, Link, and GO sample JCL. Requires the SAS/C Compiler product for MVS. RESINIT.C TCPIP sample which demonstrates the gethostbyname() function. Additionally, RESINIT enables resolver tracing, which allows one to observe the interaction between the resolver and remote nameserver. TCPCLNT.C TCPIP sample client program, to be used with the SAS/C samples TCPLISTN and TCPTSERV. This sample is platform independent. TCPCLNT.J JCL to compile, link, and execute a TCPIP sample client program. This sample is used with samples TCPLISTN, and TCPTSERV. TCPLISTN.C TCPIP sample listener program. TCPLISTN will ATTACH a child process, TCPTSERV, and issue a givesocket(). TCPLISTN.J JCL to compile, link, a TCPIP sample listener program. TCPLISTN attaches TCPTSERV, and is used with TCPCLNT TCPLSGO.J JCL to execute TCPLISTN, which has been previously compiled and linked, prefix.SAMPLE.AUX(TCPLISTN). TCPTSERV.C TCPIP sample server, attached by TCPLISTN. TCPTSERV will issue a takesocket(), and send data back to a client.