public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Tcp Listener
Date: Tue, 04 Feb 2014 01:20:08 +0200	[thread overview]
Message-ID: <52F02428.1090809@gmail.com> (raw)
In-Reply-To: <52F00F70.7090407@gmail.com>

On 03/02/2014 23:51, xarman wrote:
> 
> On 02/03/2014 11:43 PM, Alan McKinnon wrote:
>> On 03/02/2014 20:15, xarman wrote:
>>> I'm interested in making a TCP Listener in C / C++ on Linux to accept
>>> many connections simultaneously. I did a relative search on the Web and
>>> although I am aware of the C language as to a certain extent, I
>>> struggle to find a model program. Essentially, it is the listener of a
>>> server that receives a signal and stores it in a database and do some
>>> other functions. I know how to do the functions but I'm looking for a
>>> way to fix the basic skeleton of listener that will be always active.
>>> I'm not sure if I need multi threading or multi socketing for multi
>>> connections.
>>> If you have any knowledge on the subject or have a simple example or even
>>> some reference in order to work on that, I'd appreciate it.
>>>
>>>
>>
>>
>> Is this a school homework question?
>>
>>
>>
> No. Why are you asking?


It's worded like one, and it's your first post to this list I can find.
Google the topic "do my homework for me".

There's always a chance it's a genuine question though. If so, you are
unlikely to get decent answers here, this is a user-based support list
for users of Gentoo. Your question is better directed to forums that
deal with C programming as their core topic.




-- 
Alan McKinnon
alan.mckinnon@gmail.com



  parent reply	other threads:[~2014-02-03 23:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 18:15 [gentoo-user] Tcp Listener xarman
2014-02-03 19:05 ` [gentoo-user] " Grant Edwards
2014-02-03 21:43 ` [gentoo-user] " Alan McKinnon
2014-02-03 21:51   ` xarman
2014-02-03 22:04     ` William Kenworthy
2014-02-03 23:50       ` Xar Man
2014-02-03 23:20     ` Alan McKinnon [this message]
2014-02-03 23:50       ` Xar Man
2014-02-04  0:42         ` Korthrun
2014-02-04 18:21           ` Χαράλαμπος Μανουσίδης
2014-02-06 11:08 ` 钱泽森

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52F02428.1090809@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox