CPJNFinger v1.04

Welcome to CPJNFinger, A very simple MFC class to encapsulate the Finger protocol. Finger for those not familiar with all the internet protocols is the protocol used to retrieve information about a systems users. The information returned is a simple string and can be used for any purposes. For example the USGS (United States Geological Survey) use Finger to allow up to date Earthquake data to be retrieved. 

For detailed information about the Finger, you should read RFC 1288. You can find numerous Web Servers which carry these documents by doing an Internet search for "RFC" and "1288".

 

The sample app provided with the code implements a very simple GUI Finger client, a definite improvement over the console version provided by MS on NT.

 

Features
Copyright
History
Usage
API Reference
Contacting the Author

 

 

 

Features

 

 

 

Copyright

 

 

 

History

V1.0 (11 October 1999)

V1.01 (17 October 1999)

V1.02 (3 November 2003)

V1.03 (14 April 2006)

V1.04 (28 December 2006)

 

 

 

Usage

 

 

 

API Reference

The API consists of the single public member function of the class CPJNFinger

CPJNFinger::Finger

 

CPJNFinger::Finger

BOOL CPJNFinger::Finger(LPCSTR pszHostName, LPCSTR pszUser, CString& sReply, BOOL bVerbose = FALSE, int nPort = 79);

Return Value

If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call ::GetLastError.

Parameters

pszHostName The network address of the Finger server to connect to, e.g. a machine name such as “finger.somedomain.com”, or a dotted IP address such as “192.168.1.2”.

pszUser This is the user who you wish to finger, You can set this to NULL, if you want the server to return a list of users. It can be form "user" or "user@hostname".

sReply Upon successful return, this will contain the server response / finger result.

bVerbose TRUE if you want to signify a higher level of verbosity in the user information output. The Finger server is free to ignore this flag.

nPort This is the port number on which to connect. The default value is 79 which is the default Finger port number.

Remarks

Call this member function to perform the actual "Finger".

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
28 December 2006