int val = 1; setsockopt(m_nSockFd, SOL_SOCKET, SO_REUSEADDR, (char *) &val, sizeof val);
이걸 썻는데도 안되네요...
이구문 아니면 방법이 정말 없나여??
다들 이거 쓰면 된다구 하는데... 왜안돼는지~
조언 부탁드립니다...[/b]
한녀석이 여전히 bind 되어 실행중이면 두번째 bind 요청은 여전히 실패합니다. REUSE option 이 유효한 경우는 "ESTABLISHED, TIME_WAIT 상태에 있는 것이 있을 경우에도"라는 가정을 말하는 것입니다.
만약 process 만 봐서 bind, listen 하고 있는 녀석이 없어 보이는 경우에는 흔히 fork 되어 나간 자프로세스에서 close를 하지 않은 경우 입니다.
---http://coolengineer.com
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
한녀석이 여전히 bind 되어 실행중이면 두번째 bind 요청은 여전히
한녀석이 여전히 bind 되어 실행중이면 두번째 bind 요청은 여전히 실패합니다.
REUSE option 이 유효한 경우는 "ESTABLISHED, TIME_WAIT 상태에 있는 것이 있을 경우에도"라는 가정을 말하는 것입니다.
만약 process 만 봐서 bind, listen 하고 있는 녀석이 없어 보이는 경우에는
흔히 fork 되어 나간 자프로세스에서 close를 하지 않은 경우 입니다.
---
http://coolengineer.com
댓글 달기