VxWorks API Reference : OS Libraries
distTBufLib - distributed objects telegram buffer library (VxFusion option)
distTBufAlloc( ) - allocate a telegram buffer from the pool of buffers (VxFusion option)
distTBufFree( ) - return a telegram buffer to the pool of buffers (VxFusion option)
This library provides routines for allocating and freeing telegram buffers. Telegrams are the largest packets that can be sent between nodes by the distributed objects product; their size is limited by the MTU size of the underlying communications. If a distributed objects message exceeds the space allocated in a telegram for message data, that message is divided into multiple telegrams that are sent out in sequence.
This module is distributed as a component of the unbundled distributed message queues option, VxFusion.
distTBufLib.h
distTBufAlloc( ) - allocate a telegram buffer from the pool of buffers (VxFusion option)
DIST_TBUF * distTBufAlloc (void)
This routine allocates a telegram buffer from a pre-allocated pool of telegram buffers.
It is the responsibility of the caller to use the distTBufFree( ) routine to free the buffer when the caller is finished with it.
This routine is distributed as a component of the unbundled distributed message queues option, VxFusion.
A pointer to a DIST_TBUF, or NULL if the allocation fails.
distTBufLib, distTBufFree
distTBufFree( ) - return a telegram buffer to the pool of buffers (VxFusion option)
void distTBufFree ( DIST_TBUF * pTBuf /* ptr to buffer to be returned to pool */ )
This routine returns a buffer previously allocated to a caller back to the pool of free telegram buffers.
This routine is distributed as a component of the unbundled distributed message queues option, VxFusion.
N/A
distTBufLib, distTBufAlloc