NETIO_Packet implementation.
More...
Detailed Description
NETIO_Packet implementation.
Typedef Documentation
A NETIO Packet.
The NETIO layers passed NETIO_Packet structures upstream/downstream.
Function Documentation
Get a pointer to the current head.
Get a pointer to the current head. Note that it can be assumed that the payload buffer is contiguous.
- Parameters:
-
packet | <<in>> A packet to get the head pointer for. |
- Returns:
- A pointer to the packet head.
- MT Safety:
- This operation is not thread safe.
Initialize a packet with a payload.
- Parameters:
-
packet | <<in>> The packet to initialize. |
buffer | <<in>> The payload to initialize a packet with. |
buffer_length | <<in>> The length of the payload in bytes. |
- Returns:
- RTI_TRUE on success, RTI_FALSE on failure.
- MT Safety:
- This operation is not thread safe.
Get the length the packet payload.
- Parameters:
-
packet | <<in>> The packet to return the payload length for. |
- Returns:
- Length of payload, 0xffffffff if the length is invalid.
- MT Safety:
- This operation is not thread safe.