1 |
Well it's actually a project for a company that needs a tcp listener for |
2 |
the data sent by the devices. You are right about my question. It's a bit |
3 |
irrelevant with gentoo but I'm working on gentoo and I'm asking this list |
4 |
because I consider its users have wide knowledge on general programming. In |
5 |
fact I got a good suggestion and I believe my search is done. Thank you |
6 |
anyway. |
7 |
|
8 |
|
9 |
On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon <alan.mckinnon@×××××.com>wrote: |
10 |
|
11 |
> On 03/02/2014 23:51, xarman wrote: |
12 |
> > |
13 |
> > On 02/03/2014 11:43 PM, Alan McKinnon wrote: |
14 |
> >> On 03/02/2014 20:15, xarman wrote: |
15 |
> >>> I'm interested in making a TCP Listener in C / C++ on Linux to accept |
16 |
> >>> many connections simultaneously. I did a relative search on the Web and |
17 |
> >>> although I am aware of the C language as to a certain extent, I |
18 |
> >>> struggle to find a model program. Essentially, it is the listener of a |
19 |
> >>> server that receives a signal and stores it in a database and do some |
20 |
> >>> other functions. I know how to do the functions but I'm looking for a |
21 |
> >>> way to fix the basic skeleton of listener that will be always active. |
22 |
> >>> I'm not sure if I need multi threading or multi socketing for multi |
23 |
> >>> connections. |
24 |
> >>> If you have any knowledge on the subject or have a simple example or |
25 |
> even |
26 |
> >>> some reference in order to work on that, I'd appreciate it. |
27 |
> >>> |
28 |
> >>> |
29 |
> >> |
30 |
> >> |
31 |
> >> Is this a school homework question? |
32 |
> >> |
33 |
> >> |
34 |
> >> |
35 |
> > No. Why are you asking? |
36 |
> |
37 |
> |
38 |
> It's worded like one, and it's your first post to this list I can find. |
39 |
> Google the topic "do my homework for me". |
40 |
> |
41 |
> There's always a chance it's a genuine question though. If so, you are |
42 |
> unlikely to get decent answers here, this is a user-based support list |
43 |
> for users of Gentoo. Your question is better directed to forums that |
44 |
> deal with C programming as their core topic. |
45 |
> |
46 |
> |
47 |
> |
48 |
> |
49 |
> -- |
50 |
> Alan McKinnon |
51 |
> alan.mckinnon@×××××.com |
52 |
> |
53 |
> |
54 |
> |