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:
-
[in] | packet | Packet to get the head pointer for |
- Returns:
- pointer to packet head
- MT Safety:
- This operation is not thread safe.
Initialize a packet with a payload.
- Parameters:
-
[in] | packet | Packet to initialize |
[in] | buffer | Payload to initialize packet with |
[in] | buffer_length | 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:
-
[in] | packet | 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.