Date: Sun, 3 Nov 2002 10:23:41 -0800 (PST) From: alireza mahini <alirezamahini@yahoo.com> To: questions@freebsd.org Subject: How can i use multiple ethernet card for data transfer in my program( in C language)? Message-ID: <20021103182341.26131.qmail@web40712.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021103182341.26131.qmail>