Maximize send and recv buffer size of the socket Hmmm, doesn't seems useful?
Definition at line 327 of file Channel.h. References HandleError(), HandleInfo(), Impala::Util::MakeString(), and mSock. Referenced by Impala::Application::Client::ExampleRgbDataSrc(). 00328 { 00329 int nOptVal; 00330 socklen_t nOptLen = sizeof(int); 00331 for (int i=0 ; i<mSock.size() ; i++) 00332 { 00333 int nRet; 00334 nRet = getsockopt(mSock[i], SOL_SOCKET, SO_SNDBUF, (char*)&nOptVal, 00335 &nOptLen); 00336 if (nRet == SOCKET_ERROR) 00337 HandleError("MaximizeSendRecvBuffer", true); 00338 else 00339 HandleInfo("SNDBUF : " + MakeString(nOptVal)); 00340 nRet = getsockopt(mSock[i], SOL_SOCKET, SO_RCVBUF, (char*)&nOptVal, 00341 &nOptLen); 00342 if (nRet == SOCKET_ERROR) 00343 HandleError("MaximizeSendRecvBuffer", true); 00344 else 00345 HandleInfo("RCVBUF : " + MakeString(nOptVal)); 00346 } 00347 }
Here is the call graph for this function:
|