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