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 0D9D3138B37 for ; Tue, 4 Feb 2014 00:42:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20A7EE0BEF; Tue, 4 Feb 2014 00:42:48 +0000 (UTC) Received: from mail-qc0-f194.google.com (mail-qc0-f194.google.com [209.85.216.194]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1AC96E0BE3 for ; Tue, 4 Feb 2014 00:42:46 +0000 (UTC) Received: by mail-qc0-f194.google.com with SMTP id e16so4483159qcx.1 for ; Mon, 03 Feb 2014 16:42:46 -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=I4gz7ElZyGG54S7FOIFZDdYiamyorAxChkW9NdJo59s=; b=HXkL5pqI/xSZnidhE1/XVnvb94I+MUc08cqGQQnknPo9QgfXRcJ9ULuhpC1gwZk/1s PXc5E3ki0gp/VNFb6JFua5ZN+/x4d1FPx+o9CZ1wjbpuDiHgYTtYPymOfgkXhtyqHteY HJg9+IIFJAIg7QfFLqN4stYC/s4eOM2NEsYUZrVkq8hliufTYn5ZMRo2Lw8VQVAmnKCl h4CCBJoI1+tPFdVeXBGQENMvrjvCws6pNyXChzOTdZYYflITJmOqCnSVgq6vcnkLB+Rh goXKLW+Phtd6bM/w9/G0Xa0L1aASSlemg3LRTH6SM7+lrt4LBmLRL3IBuFjshk7VPYJ5 ZeqA== 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.224.114.78 with SMTP id d14mr53134757qaq.19.1391474566246; Mon, 03 Feb 2014 16:42:46 -0800 (PST) Received: by 10.140.109.132 with HTTP; Mon, 3 Feb 2014 16:42:46 -0800 (PST) In-Reply-To: References: <52EFDCB4.5040106@gmail.com> <52F00D82.1060602@gmail.com> <52F00F70.7090407@gmail.com> <52F02428.1090809@gmail.com> Date: Mon, 3 Feb 2014 16:42:46 -0800 Message-ID: Subject: Re: [gentoo-user] Tcp Listener From: Korthrun To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=047d7bea2f823c397904f189ebcc X-Archives-Salt: b3658515-91b6-4ceb-9f62-d527237c7bb6 X-Archives-Hash: 7cbc4536daa8fdc49d9c58fe68c9fd8e --047d7bea2f823c397904f189ebcc Content-Type: text/plain; charset=ISO-8859-1 Check out what I consider to be a fantastic guide: http://beej.us/guide/bgnet/ On Mon, Feb 3, 2014 at 3:50 PM, Xar Man wrote: > 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 >> >> >> > -- () The ASCII Ribbon Campaign - against HTML Email, /\ vCards, and proprietary formats. --047d7bea2f823c397904f189ebcc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Check out what I consider to be a fantastic guide: http://beej.us/guide/bgnet/
<= div class=3D"gmail_extra">

On Mon, Feb 3,= 2014 at 3:50 PM, Xar Man <manousidis.xar@gmail.com> = wrote:
Well it's actually a pr= oject 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> w= rote:
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 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






--
()=A0 The A= SCII Ribbon Campaign - against HTML Email,
/\=A0 vCards, and proprietary= formats. --047d7bea2f823c397904f189ebcc--