/* disable nagle algorithm*/
if (setsockopt(so, IPPROTO_TCP, TCP_NODELAY, (char*)&tcp, sizeof(int))) {
printf("nagle algorithm error\n");
return FALSE;
}
에서 다음과 같은 에러가 나타나는 데요....
이유가 뭔지....
`TCP_NODELAY' undeclared (first use this function)
(Each undeclared identifier is reported only once
for each function it appears in.)
저는 unix가 아니라 linux거든요?
이것을 쓰려고 하는 이유는
socket 통신을 하는데 netstat 로 통신 상태를 확인하면...
TIME_WAIT 상태가 너무 오래 있거든요...
이것을 줄일 수 있는 방법이 없을까요?