<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: threaded sockets in C++ in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785568#M99540</link>
    <description>How about marking the sockets non-blocking and using select() or poll() (or eventports)?</description>
    <pubDate>Wed, 10 May 2006 19:58:32 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2006-05-10T19:58:32Z</dc:date>
    <item>
      <title>threaded sockets in C++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785566#M99538</link>
      <description>&lt;BR /&gt;Hi All ,&lt;BR /&gt;&lt;BR /&gt;I m trying to write a clinet server program &lt;BR /&gt;My problem is that I want my server to be alwys listening to a port and also should be able to handle Simultaneous connection requests &lt;BR /&gt;Can any one give be some hints as to how to do this in C++( threaded sockets )&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Binu</description>
      <pubDate>Wed, 10 May 2006 03:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785566#M99538</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-10T03:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: threaded sockets in C++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785567#M99539</link>
      <description>Hi Binu, &lt;BR /&gt;&lt;BR /&gt;You can try these links, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://squirl.nightmare.com/medusa/async_sockets.html" target="_blank"&gt;http://squirl.nightmare.com/medusa/async_sockets.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cs.wustl.edu/~schmidt/cs544/socket2.html" target="_blank"&gt;http://www.cs.wustl.edu/~schmidt/cs544/socket2.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, Assign points. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 10 May 2006 03:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785567#M99539</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-05-10T03:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: threaded sockets in C++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785568#M99540</link>
      <description>How about marking the sockets non-blocking and using select() or poll() (or eventports)?</description>
      <pubDate>Wed, 10 May 2006 19:58:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785568#M99540</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-05-10T19:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: threaded sockets in C++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785569#M99541</link>
      <description>Thanks ARun,Rick&lt;BR /&gt;&lt;BR /&gt;Can I do some think like this&lt;BR /&gt;While(true)&lt;BR /&gt;{&lt;BR /&gt;sd = accept (listen_sd, (struct sockaddr*) &amp;amp;sa_cli,(int *) &amp;amp;client_len);&lt;BR /&gt; //trying to create threads&lt;BR /&gt; if(sd)&lt;BR /&gt; {&lt;BR /&gt;  pthread_create(&amp;amp;ThreadA,pthread_attr_default,connection,&amp;amp;sd);&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Fri, 12 May 2006 01:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785569#M99541</guid>
      <dc:creator>msbinu</dc:creator>
      <dc:date>2006-05-12T01:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: threaded sockets in C++</title>
      <link>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785570#M99542</link>
      <description>In broad handwaving terms, yes, but frankly, a thread per connection is overkill. It may be easier to code, but in terms of efficiency, I'm hardpressed to see where non-blocking I/O and select/poll wouldn't win-out.  The only case would be if there was something one had to do per-connection that couldn't be done non-blocking.</description>
      <pubDate>Fri, 12 May 2006 11:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/threaded-sockets-in-c/m-p/3785570#M99542</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-05-12T11:39:08Z</dc:date>
    </item>
  </channel>
</rss>

