1 |
Maybe I miss your problem.But there is a command line program names |
2 |
'netcat', which can send/receive TCP/UDP messages. also would be nice to |
3 |
check its source code if you are interested to writing your own. |
4 |
|
5 |
|
6 |
2014-02-04 xarman <manousidis.xar@×××××.com>: |
7 |
|
8 |
> I'm interested in making a TCP Listener in C / C++ on Linux to accept |
9 |
> many connections simultaneously. I did a relative search on the Web and |
10 |
> although I am aware of the C language as to a certain extent, I |
11 |
> struggle to find a model program. Essentially, it is the listener of a |
12 |
> server that receives a signal and stores it in a database and do some |
13 |
> other functions. I know how to do the functions but I'm looking for a |
14 |
> way to fix the basic skeleton of listener that will be always active. |
15 |
> I'm not sure if I need multi threading or multi socketing for multi |
16 |
> connections. |
17 |
> If you have any knowledge on the subject or have a simple example or even |
18 |
> some reference in order to work on that, I'd appreciate it. |
19 |
> |
20 |
> |