IBM

ls_findmyconnections

Finds established connections to hosts.

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.

#include <lsf/lsf.h>
char **ls_findmyconnections(void)

Parameters:
none 
Data Structures:
none
Define Statements:
none
Returns:
char **:A list of hostnames which members in the connection table.
Function was successful.

Null
Function failed.

Errors:
Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Equivalent line commands:
none
Files:
none
See also:
ls_connect

ls_isconnected

ls_rtask

ls_rtaske

ls_rexecv

ls_rexecve

ls_initrex



     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.