ace中如何设置keepalive属性
keepalive 属性是干什么用的? UNIX下if (ACE_OS::setsockopt(handle_, SOL_SOCKET, SO_KEEPALIVE, (const char*)&keepAlive, sizeof(keepAlive)) == -1)
{
ACE_DEBUG((LM_INFO, ACE_TEXT("(%P|%t) setsockopt SO_KEEPALIVE error!\n")));
}
参考UNIX网络编程卷一的说明
页:
[1]