[gentoo-user] Tcp Listener

2014-02-03 Thread xarman
I'm interested in making a TCP Listener in C / C++ on Linux to accept
many connections simultaneously. I did a relative search on the Web and
although I am aware of the C language as to a certain extent, I
struggle to find a model program. Essentially, it is the listener of a
server that receives a signal and stores it in a database and do some
other functions. I know how to do the functions but I'm looking for a
way to fix the basic skeleton of listener that will be always active.
I'm not sure if I need multi threading or multi socketing for multi
connections.
If you have any knowledge on the subject or have a simple example or even
some reference in order to work on that, I'd appreciate it.



Re: [gentoo-user] Tcp Listener

2014-02-03 Thread xarman

On 02/03/2014 11:43 PM, Alan McKinnon wrote:
 On 03/02/2014 20:15, xarman wrote:
 I'm interested in making a TCP Listener in C / C++ on Linux to accept
 many connections simultaneously. I did a relative search on the Web and
 although I am aware of the C language as to a certain extent, I
 struggle to find a model program. Essentially, it is the listener of a
 server that receives a signal and stores it in a database and do some
 other functions. I know how to do the functions but I'm looking for a
 way to fix the basic skeleton of listener that will be always active.
 I'm not sure if I need multi threading or multi socketing for multi
 connections.
 If you have any knowledge on the subject or have a simple example or even
 some reference in order to work on that, I'd appreciate it.




 Is this a school homework question?



No. Why are you asking?