From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4B27413800E for ; Mon, 3 Feb 2014 23:50:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B0A4E0BE3; Mon, 3 Feb 2014 23:50:38 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5E93E0BCC for ; Mon, 3 Feb 2014 23:50:36 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id kq14so7715930pab.31 for ; Mon, 03 Feb 2014 15:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=eFD462wuRtmEJ0Sv5HvWa9XpOFQkLQLy/zDCpfFyInI=; b=D+ks4m+rx2fXFugrHKwwHtvwSk5tij1zTmPMmoO7e8LmiPFbNH0XQV8868m0f9V5ff TSqR6VZDsgDAyIY+ik2HyCamTY2p4eP6/TmBLtV0QW7PpyKqCetKQ+A8PZFCqvwk6CjA Q/DEsxbiMNuWshl1oNh8ASgrOPEwmaBwdx/wOCjF3pKsE+919n4hFwB3i/ivSHNCjw9y poiPEmcPWvxM2Yql65H6nTryyqSSKtOrTgmgM+1gB7S0N+plJnqaNuY1XeaG7vy2Wmtq 2TLs92L9Ippjfs7wIpn0B84HhNzMBk5Ms6XUMbpCqRv43J3tdM5Am9RqQUFIDzyAycfT +Bsg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.68.197.99 with SMTP id it3mr40064024pbc.37.1391471435555; Mon, 03 Feb 2014 15:50:35 -0800 (PST) Received: by 10.67.30.161 with HTTP; Mon, 3 Feb 2014 15:50:35 -0800 (PST) In-Reply-To: <52F02428.1090809@gmail.com> References: <52EFDCB4.5040106@gmail.com> <52F00D82.1060602@gmail.com> <52F00F70.7090407@gmail.com> <52F02428.1090809@gmail.com> Date: Tue, 4 Feb 2014 01:50:35 +0200 Message-ID: Subject: Re: [gentoo-user] Tcp Listener From: Xar Man To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=e89a8ff1cb18a1aa0a04f1893072 X-Archives-Salt: 82deb1e4-65f9-4184-8634-f846cd357bd2 X-Archives-Hash: 21bdb9f6384e8032711aa88f4e72fc39 --e89a8ff1cb18a1aa0a04f1893072 Content-Type: text/plain; charset=ISO-8859-1 Well it's actually a project for a company that needs a tcp listener for the data sent by the devices. You are right about my question. It's a bit irrelevant with gentoo but I'm working on gentoo and I'm asking this list because I consider its users have wide knowledge on general programming. In fact I got a good suggestion and I believe my search is done. Thank you anyway. On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon wrote: > 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 > > > --e89a8ff1cb18a1aa0a04f1893072 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Well it's actually a project for a company that needs = a tcp listener for the data sent by the devices. You are right about my question. It's a= =20 bit irrelevant with gentoo but I'm working on gentoo and I'm asking= this list because I consider its users have wide knowledge on general=20 programming. In fact I got a good suggestion and I believe my search is=20 done. Thank you anyway.


On Tue, Feb 4, 2014 at 1:20 AM, Alan McKinnon <alan= .mckinnon@gmail.com> wrote:
On 0= 3/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 Linu= x to accept
>>> many connections simultaneously. I did a relative search on th= e 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 liste= ner 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 lo= oking 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 exam= ple 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



--e89a8ff1cb18a1aa0a04f1893072--