NET_PRES_TransWrite Type
C
typedef uint16_t (* NET_PRES_TransWrite)(uintptr_t transHandle, const uint8_t* buffer, uint16_t count);
Returns
The number of data bytes accepted by the transport layer.
Description
Presentation Layer Transport Layer Write Function Pointer Prototype This function prototype is used to define the function that the Networking Presentation Layer will pass to the provider when it is initialized. The provider will use this function when it needs to write to the transport layer.
Preconditions
None.
Parameters
Parameters | Description |
---|---|
transHandle | This is the transport layer handle provided by the transport layer when a communications channel is open. |
buffer | This is a pointer to the buffer contains the data to be passed to the transport layer. |
count | This is the size of the buffer. |