#include <dwc.h>
BOOL DWC_SetSendSplitMax( u16 sendSplitMax );
Sets the maximum data size that can be sent to the connected host at one time. When reliable send is used in the DWC_SendReliable or DWC_SendReliableBitmap function to send the data larger than this size, the send data will be split and any data that could not be sent completely will be saved as it is. As soon as space is available in the send buffer for which the size was specified with the DWC_InitFriendsMatch function, the data will be sent from within the DWC_ProcessFriendsMatch function.
When unreliable send is used in the DWC_SendUnreliable or DWC_SendUnreliableBitmap function to send the data larger than this size, the data will not be sent and FALSE will be returned.
The default maximum send size is 1465 bytes (as defined by DWC_TRANSPORT_SEND_MAX).
Do not exceed this size in settings, as it was determined to support the settings of various communications devices.
When the reliable send/receive buffer size is set smaller with the DWC_InitFriendsMatch function, you can use this function to adjust the maximum send data size to prevent buffer overflow.
sendSplitMax |
Maximum data size that can be sent in one data send. |
TRUE |
Configuration was successful. |
FALSE |
Configuration failed because the FriendsMatch Library was not running. |
DWC_InitFriendsMatch
DWC_SendReliable
DWC_SendReliableBitmap
DWC_SendUnreliable
DWC_SendUnreliableBitmap
2006/02/21 Added a note about the DWC_TRANSPORT_SEND_MAX constant.
2006/01/18 Added support for a change to the Boolean return value.
2005/12/16 Added explanation regarding maximum size of divisions.
2005/11/02 Initial version.
CONFIDENTIAL