Knowledge Center Contents Previous Next |
ls_findmyconnections()
Finds established connections to hosts.
DESCRIPTION
ls_findmyconnections() retrieves the list of hosts with which the application has established a connection. A connection is established upon the first successful return from an ls_connect(), ls_rtask(), ls_rtaske(), ls_rexecv(), or ls_rexecve() call. The returned host name list is terminated by a NULL value. The function maintains a static array, each element of which points to a host name. This array is overwritten the next time ls_findmyconnections() is called. If a connection is not found, the first element of the array is a NULL pointer.
Any program using these routines must call ls_initrex() first.
Any program using these routines must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.
SYNOPSIS
#include <lsf.h> char **ls_findmyconnections(void)RETURN VALUES
character:NULL
Function was successful.
character:
ERRORS
Systems that conform to the Single UNIX specification are not required to detect error conditions for this function. - Error handling
SEE ALSO
Related APIs
ls_connect()
ls_isconnected()
ls_rtask()
ls_rtaske()
ls_rexecv()
ls_rexecve()
ls_initrex()
Equivalent line command
none
Files
none
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next |