nonblock mode connect 처럼 select에서 쓰기감지가 일어나는것을
체크할수 있지만 서버쪽에서의 accept 와 message 처리를 위한 select에서
도 write 감지가 일어나는 경우가 있나요?
고수님들의 답변 꼭 바랍니다. ^___^;
listen 소켓을 select할 때 쓰기 감지하는 것이 의미가 있는지 모르겠습니다. 안될 것으로 보이구요.
accept후의 소켓의 select류 쓰기 감지는 그 소켓이 소켓 쓰기 버퍼의 여유가 (소켓 옵션으로 정하는) 있어서 바로 writeable하다는 것을 의미합니다. (에러일 경우도 있겠군요.)
보통 리슨 소켓은 readable비트만 켜는 것으로 알고 있구요. 다른 소켓은 용도에 따라 writeable도 사용하는 것을 봤습니다.
죄송합니다. 제가 넘 늦게 봤군요..
답변 감사합니다. ^^;
^____^; 방가여
setsockopt 에서 send buffer watermark 에 관한 것을 살펴보세요.
---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]
listen 소켓을 select할 때 쓰기 감지하는 것이 의미가 있는지
listen 소켓을 select할 때 쓰기 감지하는 것이 의미가 있는지 모르겠습니다. 안될 것으로 보이구요.
accept후의 소켓의 select류 쓰기 감지는 그 소켓이 소켓 쓰기 버퍼의 여유가 (소켓 옵션으로 정하는) 있어서 바로 writeable하다는 것을 의미합니다. (에러일 경우도 있겠군요.)
보통 리슨 소켓은 readable비트만 켜는 것으로 알고 있구요. 다른 소켓은 용도에 따라 writeable도 사용하는 것을 봤습니다.
답변 감사합니다.
죄송합니다. 제가 넘 늦게 봤군요..
답변 감사합니다. ^^;
^____^; 방가여
setsockopt 에서 send buffer watermark 에 관한
setsockopt 에서 send buffer watermark 에 관한 것을 살펴보세요.
---
http://coolengineer.com
댓글 달기