From owner-freebsd-hackers Thu Dec 23 19:23: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ind.alcatel.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id EEC8F14EA9 for ; Thu, 23 Dec 1999 19:23:03 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com (mailhub [198.206.181.70]) by ind.alcatel.com (8.9.3+Sun/8.9.1 (ind.alcatel.com 3.0 [OUT])) with SMTP id TAA12576; Thu, 23 Dec 1999 19:21:27 -0800 (PST) X-Origination-Site: Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id TAA00998; Thu, 23 Dec 1999 19:21:27 -0800 Received: from softweyr.com (dyn0.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA09364; Thu, 23 Dec 99 19:21:23 PST Message-Id: <3862E729.6CE2F0E0@softweyr.com> Date: Thu, 23 Dec 1999 20:23:21 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: miaobo@mail.zhongxing.com Cc: Jack Rusher , hackers@FreeBSD.ORG Subject: Re: ASYCH/message-based programming style References: <48256850.000F1B98.00@mail.zhongxing.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG miaobo@mail.zhongxing.com wrote: > > Thanks for your immediate response: > > It enlights me of some principles to access event driven programming > library. But I can't imagine what the primitives you mentioned would like, > can you give a breif list of them? Or, can you indicate what part of X > window code that I can learn of how to build up my own event-driven library > under UNIX? I wish it would not be too complicated since that Xlib and Xt > stuffs are nightmares to me. @_@ > > Or, as I mentioned, I think knowing the procedure of: from NIC receives a > network packet to application's blocked read() returns, will be helpful to > me. Can you give a basic introduction on this or just refer what parts of > kernel code that I should look at? None. A read through "Advanced Programming in the UNIX Environment", by W. Richard Stevens, is what you really need. "UNIX Network Programming" by the same author might also be helpful. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message