amarquee.library/QGetProgName amarquee.library/QGetProgName
NAME
QGetProgName - Returns the program name of the currently connected remote host.
SYNOPSIS
#include
char *QGetProgName(struct QSession * session)
FUNCTION
Returns the program name of the currently connected remote host.
INPUTS
session - Pointer to the QSession struct you want information for.
RESULTS
The program name.
NOTE
It is illegal to use this on a raw socket connection created with a QNewSocket***Session()
call.
This function requires amarquee.library v49+.
EXAMPLE
struct QSession * s;
if (s = QNewSession("example.server.com", 2957, "MyProg"))
{
char *progname;
/* ... */
progname = QGetProgName(s);
printf("Currently the program %s is connected to our session\n",progname);
/* would return MyProg */
/* ... */
QFreeSession(s);
}
SEE ALSO
QGetHostName
Converted on 24 Mar 2002 with RexxDoesAmigaGuide2HTML 2.1e(private) by Michael Ranner.