#include <dwc.h>
BOOL DWC_SetSendSplitMax(u16 sendSplitMax);sendSplitMax |
Maximum data size that can be sent in one data send. |
TRUE |
Configuration was successful. |
FALSE |
The configuration failed because the FriendsMatch library was not running. |
Sets the maximum data size that can be sent at one time to other connected hosts. When using the DWC_SendReliable or DWC_SendReliableBitmap function to reliably send data that is larger than this size, the send data is split and saved. As soon as space is available in the send buffer for the size specified with the DWC_InitFriendsMatch function, the data is sent from the DWC_ProcessFriendsMatch function.
By default, the maximum data size that can be sent is 1465 bytes (as defined by DWC_TRANSPORT_SEND_RELIABLE_MAX). To support communication devices of various configurations, do not set a value that exceeds this size. Subtract DWC_TRANSPORT_RELIABLE_ALL_HEADER_SIZE from the MTU size to calculate the size that should be specified for sendSplitMax.
When the reliable send/receive buffer size is reduced with the DWC_InitFriendsMatch function, use this function to adjust the maximum send data size and prevent buffer overflow.
For the change log prior to 5.1 PR2, click here.
CONFIDENTIAL