*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> video/vlgetconnection (3d)              
Title
Content
Arch
Section
 

Contents


VLGETCONNECTION(3dm)					  VLGETCONNECTION(3dm)


NAME    [Toc]    [Back]

     vlGetConnection - manage the connectivity of a VL path

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/vl.h>

     int vlGetConnection(VLServer svr, VLPath path,
			 VLNode	node, VLPort port,
			 VLNode	*nodelist, VLPort *portlist,
			 int *n);

PARAMETERS    [Toc]    [Back]

     svr       Specifies the server handle.

     path      Specifies the path handle.

     node      Specifies the node to get connection information	from.

     port      Specifies the port to get connection information	from.

     nodelist

     portlist  On return, (nodelist[i],	portlist[i]) specify the source	or
	       target connections to (node, port).

     n	       On entry, n points to an	integer	value specifying the size of
	       the nodelist and	portlist arrays. On exit, n is updated to
	       reflect the actual number of connections	returned.

DESCRIPTION    [Toc]    [Back]

     vlGetConnection obtains connection	information about (node, port).

     If	(node, port) specifies a source	port, then all currently connected
     targets of	that port are returned in the nodelist and portlist arrays,
     and *n is updated to reflect the number of	targets.

     If	(node, port) specifies a drain port, then it can have at most one
     source connection returned	in the nodelist	and portlist arrays.

     If	(node, port) is	not connected, then *n is set to 0.

     If	a source or target of (node, port) cannot be represented on the	given
     path, then	(VLUnknownNode,	VLUnknownPort) is returned in the nodelist and
     portlist arrays. This may happen if multiple paths	share a	node, and one
     path creates a connection to a node on its	path but not on	the other
     paths.

     If	vlGetConnection	is called with a value of *n which is not large	enough
     to	contain	entries	for all	connections, a value of	-1 is returned,
     vlErrno is	set to VLNotEnoughSpace, and *n	is set to the number of
     entries necessary to describe all connections.



									Page 1






VLGETCONNECTION(3dm)					  VLGETCONNECTION(3dm)



     Calls to vlGetConnection can be made on any path that has been setup
     (i.e. has a stream	and control usage other	than VL_DONE_USING).

RETURN VALUE    [Toc]    [Back]

     If	successful, this functions returns zero. A return value	of -1
     indicates an error, and vlErrno is	set to one of the following:


     VLBadServer	   The server parameter	is not valid.

     VLBadPath		   The path is not valid.

     VLBadNode		   The source or target	node is	not a valid node on
			   the path.

     VLBadAccess	   The path has	not been setup.

     VLBadAlloc		   A memory allocation attempt failed.

     VLNotSupported	   vlGetConnection is not supported on the device.

     VLBadImplementation   An internal processing error	has occurred.

     VLNotEnoughSpace	   Nodelist or portlist	array does not contain enough
			   entries to describe all connections.

SEE ALSO    [Toc]    [Back]

      
      
     vlSetConnection(3dm), vlSetupPaths(3dm), vlBeginTransfer(3dm)
VLGETCONNECTION(3dm)					  VLGETCONNECTION(3dm)


NAME    [Toc]    [Back]

     vlGetConnection - manage the connectivity of a VL path

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/vl.h>

     int vlGetConnection(VLServer svr, VLPath path,
			 VLNode	node, VLPort port,
			 VLNode	*nodelist, VLPort *portlist,
			 int *n);

PARAMETERS    [Toc]    [Back]

     svr       Specifies the server handle.

     path      Specifies the path handle.

     node      Specifies the node to get connection information	from.

     port      Specifies the port to get connection information	from.

     nodelist

     portlist  On return, (nodelist[i],	portlist[i]) specify the source	or
	       target connections to (node, port).

     n	       On entry, n points to an	integer	value specifying the size of
	       the nodelist and	portlist arrays. On exit, n is updated to
	       reflect the actual number of connections	returned.

DESCRIPTION    [Toc]    [Back]

     vlGetConnection obtains connection	information about (node, port).

     If	(node, port) specifies a source	port, then all currently connected
     targets of	that port are returned in the nodelist and portlist arrays,
     and *n is updated to reflect the number of	targets.

     If	(node, port) specifies a drain port, then it can have at most one
     source connection returned	in the nodelist	and portlist arrays.

     If	(node, port) is	not connected, then *n is set to 0.

     If	a source or target of (node, port) cannot be represented on the	given
     path, then	(VLUnknownNode,	VLUnknownPort) is returned in the nodelist and
     portlist arrays. This may happen if multiple paths	share a	node, and one
     path creates a connection to a node on its	path but not on	the other
     paths.

     If	vlGetConnection	is called with a value of *n which is not large	enough
     to	contain	entries	for all	connections, a value of	-1 is returned,
     vlErrno is	set to VLNotEnoughSpace, and *n	is set to the number of
     entries necessary to describe all connections.



									Page 1






VLGETCONNECTION(3dm)					  VLGETCONNECTION(3dm)



     Calls to vlGetConnection can be made on any path that has been setup
     (i.e. has a stream	and control usage other	than VL_DONE_USING).

RETURN VALUE    [Toc]    [Back]

     If	successful, this functions returns zero. A return value	of -1
     indicates an error, and vlErrno is	set to one of the following:


     VLBadServer	   The server parameter	is not valid.

     VLBadPath		   The path is not valid.

     VLBadNode		   The source or target	node is	not a valid node on
			   the path.

     VLBadAccess	   The path has	not been setup.

     VLBadAlloc		   A memory allocation attempt failed.

     VLNotSupported	   vlGetConnection is not supported on the device.

     VLBadImplementation   An internal processing error	has occurred.

     VLNotEnoughSpace	   Nodelist or portlist	array does not contain enough
			   entries to describe all connections.

SEE ALSO    [Toc]    [Back]

      
      
     vlSetConnection(3dm), vlSetupPaths(3dm), vlBeginTransfer(3dm)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
glxqueryhyperpipenetworksgix IRIX query the physical connectivity of the hardware
icod_notify HP-UX Test e-mail connectivity to HP for instant Capacity on
linkloop HP-UX verify LAN connectivity with link-level loopback
cdptrec Tru64 Read Path Table Record from the CD-ROM Path Table
pathchk HP-UX check path names
pathchk Tru64 Checks path names
fpathconf HP-UX get configurable path name variables
devnm HP-UX map device ID to file path
File::Basename IRIX extract just the directory from a path
ftok NetBSD create IPC indentifier from path name
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service