Check out what I consider to be a fantastic guide: http://beej.us/guide/bgnet/
On Mon, Feb 3, 2014 at 3:50 PM, Xar Man <manousidis....@gmail.com> wrote: > Well it's actually a project for a company that needs a tcp listener for > the data sent by the devices. You are right about my question. It's a bit > irrelevant with gentoo but I'm working on gentoo and I'm asking this list > because I consider its users have wide knowledge on general programming. In > fact I got a good suggestion and I believe my search is done. Thank you > anyway. > > > On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon <alan.mckin...@gmail.com>wrote: > >> On 03/02/2014 23:51, xarman wrote: >> > >> > 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? >> >> >> It's worded like one, and it's your first post to this list I can find. >> Google the topic "do my homework for me". >> >> There's always a chance it's a genuine question though. If so, you are >> unlikely to get decent answers here, this is a user-based support list >> for users of Gentoo. Your question is better directed to forums that >> deal with C programming as their core topic. >> >> >> >> >> -- >> Alan McKinnon >> alan.mckin...@gmail.com >> >> >> > -- () The ASCII Ribbon Campaign - against HTML Email, /\ vCards, and proprietary formats.