From owner-freebsd-questions Fri Oct 11 6:24:20 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 D8E8037B401 for ; Fri, 11 Oct 2002 06:24:19 -0700 (PDT) Received: from infinity.aesredfish.net (ns1.aesredfish.net [65.168.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDAD43EA3 for ; Fri, 11 Oct 2002 06:24:18 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (mhope-dhcp-65-168-1-181.dashfast.com [65.168.1.181]) by infinity.aesredfish.net (8.11.6/8.11.0) with ESMTP id g9BDOFW29698; Fri, 11 Oct 2002 09:24:15 -0400 Message-ID: <3DA6D2DC.2010003@potentialtech.com> Date: Fri, 11 Oct 2002 09:32:12 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc1) Gecko/20020502 X-Accept-Language: en-us, en MIME-Version: 1.0 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? References: <20021011054937.92483.qmail@web40708.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 alireza mahini wrote: > I want to accepting and handeling(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. Consider researching the source code for inetd, which does this. Install the sources on your FreeBSD machine and look in /usr/src/usr.sbin/inetd -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message