Gentoo Archives: gentoo-user

From: xarman <manousidis.xar@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tcp Listener
Date: Mon, 03 Feb 2014 21:51:46
Message-Id: 52F00F70.7090407@gmail.com
In Reply to: Re: [gentoo-user] Tcp Listener by Alan McKinnon
1 On 02/03/2014 11:43 PM, Alan McKinnon wrote:
2 > On 03/02/2014 20:15, xarman wrote:
3 >> I'm interested in making a TCP Listener in C / C++ on Linux to accept
4 >> many connections simultaneously. I did a relative search on the Web and
5 >> although I am aware of the C language as to a certain extent, I
6 >> struggle to find a model program. Essentially, it is the listener of a
7 >> server that receives a signal and stores it in a database and do some
8 >> other functions. I know how to do the functions but I'm looking for a
9 >> way to fix the basic skeleton of listener that will be always active.
10 >> I'm not sure if I need multi threading or multi socketing for multi
11 >> connections.
12 >> If you have any knowledge on the subject or have a simple example or even
13 >> some reference in order to work on that, I'd appreciate it.
14 >>
15 >>
16 >
17 >
18 > Is this a school homework question?
19 >
20 >
21 >
22 No. Why are you asking?

Replies

Subject Author
Re: [gentoo-user] Tcp Listener William Kenworthy <billk@×××××××××.au>
Re: [gentoo-user] Tcp Listener Alan McKinnon <alan.mckinnon@×××××.com>