From owner-freebsd-questions Sun Oct 13 11: 7:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FBFD37B401 for ; Sun, 13 Oct 2002 11:07:44 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 4E7C243E7B for ; Sun, 13 Oct 2002 11:07:43 -0700 (PDT) (envelope-from keramida@FreeBSD.ORG) Received: (qmail 15712 invoked from network); 13 Oct 2002 18:00:42 -0000 Received: from upnet-dialinpool-85.upnet.gr (HELO hades.hell.gr) (@150.140.128.169) by nic.upatras.gr with SMTP; 13 Oct 2002 18:00:42 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g9DI7jaY011684; Sun, 13 Oct 2002 21:07:50 +0300 (EEST) (envelope-from keramida@FreeBSD.ORG) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g9DHcTIQ011248; Sun, 13 Oct 2002 20:38:29 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sun, 13 Oct 2002 20:38:29 +0300 From: Giorgos Keramidas To: alireza mahini Cc: questions@FreeBSD.ORG Subject: Re: Is there any way that i can listening ,accepting and handeling two or more sockets at the same time? Message-ID: <20021013173829.GC10829@hades.hell.gr> References: <20021011054937.92483.qmail@web40708.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021011054937.92483.qmail@web40708.mail.yahoo.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-10-10 22:49, alireza mahini wrote: > I want to accepting and handle (sending to and receiving from) two > sockets (STREAM socket) at the same time please guide me and send me > a sample code written in c++ about this title for me. > Thanks for your attention. If you can get your hands on a copy of "UNIX Network Programming" by Richard W. Stevens, you will certainly find many examples of source code that will help. Borrow it, buy it, get to read it in one way or another. It's not the only book you can read about networking with UNIX, and it contains examples in C (not C++), but it will help a lot. -- keramida@FreeBSD.org FreeBSD: The Power to Serve FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message