<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[sockets]]></title><description><![CDATA[<p>Hi,</p>
<p>there are different types of sockets:<br />
- Blocking<br />
- Nonblocking<br />
- I/O multiplexing<br />
- Signal-driven I/O<br />
- Asynchronous I/O</p>
<p>what is it mean by...blocking sockets are single threaded and non blocking use select or multi-threading?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/320971/sockets</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 14:06:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/320971.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Oct 2013 22:58:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sockets on Fri, 18 Oct 2013 22:58:14 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>there are different types of sockets:<br />
- Blocking<br />
- Nonblocking<br />
- I/O multiplexing<br />
- Signal-driven I/O<br />
- Asynchronous I/O</p>
<p>what is it mean by...blocking sockets are single threaded and non blocking use select or multi-threading?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361298</guid><dc:creator><![CDATA[jeff1]]></dc:creator><pubDate>Fri, 18 Oct 2013 22:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to sockets on Fri, 18 Oct 2013 23:00:31 GMT]]></title><description><![CDATA[<p>and how can i create them?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361299</guid><dc:creator><![CDATA[jeff1]]></dc:creator><pubDate>Fri, 18 Oct 2013 23:00:31 GMT</pubDate></item><item><title><![CDATA[Reply to sockets on Sat, 19 Oct 2013 08:34:25 GMT]]></title><description><![CDATA[<p><a href="http://beej.us/guide/bgnet/" rel="nofollow">http://beej.us/guide/bgnet/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361313</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Sat, 19 Oct 2013 08:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to sockets on Sat, 19 Oct 2013 18:25:39 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>This only mentions blocking sockets inc. select ...</p>
<p>Where can i read more about the other techniques?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361444</guid><dc:creator><![CDATA[Jeff1]]></dc:creator><pubDate>Sat, 19 Oct 2013 18:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to sockets on Sat, 19 Oct 2013 18:50:25 GMT]]></title><description><![CDATA[<p>I think these slides explain it great!</p>
<p><a href="http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt" rel="nofollow">http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt</a></p>
<p>I look for more infos inc examples...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361448</guid><dc:creator><![CDATA[Jeff1]]></dc:creator><pubDate>Sat, 19 Oct 2013 18:50:25 GMT</pubDate></item><item><title><![CDATA[Reply to sockets on Sun, 20 Oct 2013 18:26:50 GMT]]></title><description><![CDATA[<p>Jeff1 schrieb:</p>
<blockquote>
<p>I think these slides explain it great!</p>
<p><a href="http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt" rel="nofollow">http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt</a></p>
<p>I look for more infos inc examples...</p>
</blockquote>
<p>Be careful - on a first glimpse, some slides seem to be misleading. Better check out some more reliable resources, too.</p>
<p>Slide 7 (I/O) multiplexing) states the process would block after calling <code>select</code> until a datagram was ready to read, which is wrong. It doesn't block longer than the timeout you give it, and that can be zero if you wish. Otherwise it would be pretty useless.</p>
<p>Slide 15 suggests to abuse <code>select</code> as a millisecond timer. Wow, what a precision! Gee, there is <code>usleep</code> and you get a microsecond timer...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2361601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2361601</guid><dc:creator><![CDATA[minastaros]]></dc:creator><pubDate>Sun, 20 Oct 2013 18:26:50 GMT</pubDate></item></channel></rss>