VxWorks Reference Manual : Libraries
distTBufLib - distributed objects telegram buffer library (VxFusion)
distTBufAlloc( ) - allocate a telegram buffer from the pool of buffers
distTBufFree( ) - return a telegram buffer to the pool of buffers
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.
distTBufLib.h
distTBufAlloc( ) - allocate a telegram buffer from the pool of buffers
DIST_TBUF *distTBufAlloc()
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.
A telegram buffer (DIST_TBUF), or NULL if the allocation fails.
distTBufLib, distTBufFree
distTBufFree( ) - return a telegram buffer to the pool of buffers
void distTBufFree ( DIST_TBUF * pTBuf /* ptr to telegram buffer to be returned to pool */ )
This routine returns a buffer previously allocated to a caller back to the pool of free telegram buffers.
N/A
distTBufLib, distTBufAlloc