IBM

ls_conntaskport

Connects a socket to a remote task port.

ls_conntaskport connects a socket to the task port that was created by the remote RES for the remote task tid returned by an ls_rtask or ls_rtaske call. You must have started the remote task with the REX_TASKPORT flag (see ls_rtask).

Any program using this routine must call ls_initrex first.

Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.

#include <lsf/lsf.h>

int ls_conntaskport(int tid)

Parameters:
tid The ID of the remote task being accessed.
Data Structures:
none
Define Statements:
none
Returns:
int:A connected socket.
Function was successful

int:-1
Function failed

Errors:
If the function fails, lserrno is set to indicate the error.
Equivalent line commands:
none
Files:
${LSF_ENVDIR:-/etc}/lsf.conf
See also:
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.