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