Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 8

PhLinkTransportData()

Add transport data to a linked list

Synopsis:

PhTransportLink_t * 
   PhLinkTransportData(
       PhTransportLink_t **first_link,
       PhTransportLink_t **last_link,
       char const * const data,
       int unsigned const size,
       iov_t *iovs,
       int unsigned const niovs );

Library:

ph

Description:

This function allocates a PhTransportLink_t structure and fills it in using the data, size, iovs, and niovs arguments. It then adds the new structure to the end of the linked list whose head is pointed to by first_link and whose tail is pointed to by last_link.

This function is used to build the linked list of data in a PhTransportCtrl_t structure.

Returns:

A pointer to the PhTransportLink_t structure, or NULL if there wasn't enough memory.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhCreateTransportCtrl(), PhTransportCtrl_t, PhTransportFindLink(), PhTransportLink_t, PhTransportType()

Drag and Drop chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 111

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/ph/phlinktransportdata.html on line 111