From owner-freebsd-hackers Mon May 10 13:14:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from peedub.muc.de (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (Postfix) with ESMTP id D9AEE1526D for ; Mon, 10 May 1999 13:14:17 -0700 (PDT) (envelope-from garyj@peedub.muc.de) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.9.3/8.6.9) with ESMTP id VAA74136; Mon, 10 May 1999 21:45:27 +0200 (CEST) Message-Id: <199905101945.VAA74136@peedub.muc.de> X-Mailer: exmh version 2.0.2 2/24/98 To: Zhihui Zhang Cc: freebsd-hackers@freefall.cdrom.com Subject: Re: Sockets and SYSTEM V message queue Reply-To: Gary Jennejohn In-reply-to: Your message of "Mon, 10 May 1999 15:00:39 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 10 May 1999 21:45:26 +0200 From: Gary Jennejohn Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Zhihui Zhang writes: > >> >> If your app is always going to run on a single system, there are >> better ways to implement it. Local-domain sockets is one; pipes is >> another (which may or may not be implemented with local-domain >> sockets). SysV message queues could be used as well. Don't know >> enough about their limitations to know whether it's a good choice, >> though. >> > >Thanks for the reply. I read some source code. In it, a server process >create a single socket to accept packets from both local client processes >and remote clients processes. This should be bad for performance. Am I >right? According to your suggestion, it may be better to create one >local-domain socket (I will figure how to use it later) for local clients >and another socket for the remote clients. > This is an accept socket. It's only used to inform the server that a connection request has arrived from a client. When the server does an accept a new socket is created for that connection. I don't want to be unfriendly, but this stuff is all documented in the man pages. Try reading them before using precious bandwidth on the lists. --- Gary Jennejohn Home - garyj@muc.de Work - garyj@fkr.dec.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message