DWC_SetRwinSize

Syntax

#include <dwc.h>
void DWC_SetRwinSize(s32 size);

Arguments

size TCP receive window size. (In bytes.)

Return Values

None.

Description

Sets the receiving window size, RWIN(ReceiveWindow), to be used with TCP/IP communication.

This can only be set in TWL mode.

The configurable range is from 4288 bytes to 65,535 bytes.

The receiving window is set to 4288 bytes when this function is not used. Even if the MTU has been set to 576 bytes by the user, the RWIN uses 4288 bytes, regardless of the value set by this function.

This function must be called in the interval between the DWC_InitInet/DWC_InitInetEx function and the DWC_ConnectInetAsync/DWC_DebugConnectInetAsync function.

See Also

DWC_InitInet
DWC_InitInetEx
DWC_ConnectInetAsync
DWC_DebugConnectInetAsync

Revision History

5.1
Added that this is enabled only in TWL mode. Added mention of the relationship with MTU.

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL