How to configure the TCP receive window.
The following code snippet shows how to configure the TCP receive window size:
// Licensees need to override the SetTCPwin() function
CNokiaTCPRecvWindow: Public CTCPReceiveWindowSize
{
public:
virtual void SetTCPwin(TUint aBearerType)
{
//Set iWinSize based on the bearer type
// If Licensees want to configure the Max TCP receive window size per TCP socket,
// then they must specify a value greater than the max value configured in the tcpip.ini file.
// If Licensees want to set the TCP Receive max value uniform across all sockets,
// then they must specify the value in the tcpip.ini file and set the iMaxWinSize =0.
// So MaxWinSize will always be configured from the tcpip.ini file.
}
};
CNetworkMetaConnectionProvider::ConstructL()
{
CTCPReceiveWindowSize * iRecvWIndow = New(ELeave) CNokiaTCpRecvWindow();
//Append the pointer to the lookup table. The Pointer is of the type CTCPReceiveWindowSize.
iAccessPointConfig->AppendExtensionL(iReceiveWindow);
}
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.