Gentoo Archives: gentoo-user

From: Xar Man <manousidis.xar@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Tcp Listener
Date: Mon, 03 Feb 2014 23:50:17
Message-Id: CAEAD5B2UCDj2GPGP=kOvPJO_5SpbHXNLATN-y+vXzhF1gbJOBw@mail.gmail.com
In Reply to: Re: [gentoo-user] Tcp Listener by William Kenworthy
1 Thank you Grant and William. I wasn't aware of python programming and now
2 that I have looked some stuff it seems indeed much simpler to implement it
3 with. I'll look into it.
4
5
6 On Tue, Feb 4, 2014 at 12:04 AM, William Kenworthy <billk@×××××××××.au>wrote:
7
8 > On 04/02/14 05:51, xarman wrote:
9 > >
10 > > On 02/03/2014 11:43 PM, Alan McKinnon wrote:
11 > >> On 03/02/2014 20:15, xarman wrote:
12 > >>> I'm interested in making a TCP Listener in C / C++ on Linux to accept
13 > >>> many connections simultaneously. I did a relative search on the Web and
14 > >>> although I am aware of the C language as to a certain extent, I
15 > >>> struggle to find a model program. Essentially, it is the listener of a
16 > >>> server that receives a signal and stores it in a database and do some
17 > >>> other functions. I know how to do the functions but I'm looking for a
18 > >>> way to fix the basic skeleton of listener that will be always active.
19 > >>> I'm not sure if I need multi threading or multi socketing for multi
20 > >>> connections.
21 > >>> If you have any knowledge on the subject or have a simple example or
22 > even
23 > >>> some reference in order to work on that, I'd appreciate it.
24 > >>>
25 > >>>
26 > >>
27 > >>
28 > >> Is this a school homework question?
29 > >>
30 > >>
31 > >>
32 > > No. Why are you asking?
33 > >
34 >
35 > He is asking because its one of the common C/C++ computer science
36 > assignments!
37 >
38 > In practice, perl, python are usually simpler and easier to use.
39 >
40 > and the google-fu needed is to search for a TCP echo server to use as a
41 > staring point.
42 >
43 > BillK
44 >
45 >
46 >
47 >