From owner-freebsd-isp Wed Feb 23 6:38:50 2000 Delivered-To: freebsd-isp@freebsd.org Received: from web2101.mail.yahoo.com (web2101.mail.yahoo.com [128.11.68.245]) by hub.freebsd.org (Postfix) with SMTP id AC42F37B8A4 for ; Wed, 23 Feb 2000 06:38:45 -0800 (PST) (envelope-from xiyuan@yahoo.com) Received: (qmail 4886 invoked by uid 60001); 23 Feb 2000 14:38:45 -0000 Message-ID: <20000223143845.4885.qmail@web2101.mail.yahoo.com> Received: from [202.102.94.162] by web2101.mail.yahoo.com; Wed, 23 Feb 2000 06:38:45 PST Date: Wed, 23 Feb 2000 06:38:45 -0800 (PST) From: xiyuan qian Subject: server program socket connection To: freebsd-isp@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am writing a server program, which can accept many clients connect in. Now, I want this server program can connect as a client to another server to get some messages that are happening in real time. So, the connection need to be real time. With socket connect, now this server program can get the messages from another server but it's always busy in getting messages so it has no time to handle the in connects, that is now, the server program can not accecp even one client connection. How can I write the server program to let it runs as a server and at the meantime as a client and exchange all the messages in realtime. With FD_SET()??? With select()??? I have very little knowladge on writing the socket connections program. I need more detail helps. Please help me!!! Best regaurds! __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message