I have to run two TCP sessions with different RcvBufSize.
I know the following code can setup the RcvBufSize for all TCP sessions.
Config::SetDefault("ns3::TcpSocket::RcvBufSize", UintegerValue (1500000));
Actually, I'm looking for the function like setsockopt()
to setup SO_RCVBUF for each TCP session.
I also tried to downcast Ptr<Socket>
to Ptr<TcpSocket>
, but SetRcvBufSize()
is private function...
Is there anyway to solve this problem?