From owner-freebsd-questions Sun Nov 3 10:23:43 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 C86D737B401 for ; Sun, 3 Nov 2002 10:23:41 -0800 (PST) Received: from web40712.mail.yahoo.com (web40712.mail.yahoo.com [66.218.78.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 7D23E43E97 for ; Sun, 3 Nov 2002 10:23:41 -0800 (PST) (envelope-from alirezamahini@yahoo.com) Message-ID: <20021103182341.26131.qmail@web40712.mail.yahoo.com> Received: from [81.12.16.1] by web40712.mail.yahoo.com via HTTP; Sun, 03 Nov 2002 10:23:41 PST Date: Sun, 3 Nov 2002 10:23:41 -0800 (PST) From: alireza mahini Subject: How can i use multiple ethernet card for data transfer in my program( in C language)? To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 I have 2 ethernet card {rl0 with inet "128.128.64.235" and rl1 with inet"128.128.65.235").I wrote a program that creates DGREAM sockets and bind them into valid addresses then sending packets and receiving their acks from another program.My code operates as below: main(){ sd1=socket(...); sd2=socket(...); rd1=socket(...); rd2=socket(...); bind(..sd1.);/*sd1 bind in 128.128.64.235 for sending data*/ bind(..sd2.);/*sd2 bind in 128.128.65.235 for sending data*/ bind(..rd1.);/*rd1 bind in 128.128.64.235 for receiving data*/ bind(..rd2.);/*rd2 bind in 128.128.65.235 for receiving data*/ sendto(..sd1..); sendto(..sd2..); recvfrom(..rd1..); recvfrom(..rd2..); ... } As you see above i wanty send data from rl0 and rl1 but when i execute my code data only send from rl0 and ther is not any data for outgoing from rl1. please guide me what i must do? __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message