How can i use multiple ethernet card for data transfer in my program( in C language)?

2002-11-06 Thread alireza mahini
I have two ethernet card(NIC)im my computer .Their characteristics are: name:rl0 ip:128.128.64.235 netmask:255.255.0.0 broadcast:128.128.255.255 name:rl1 ip:128.128.65.235 netmask:255.255.0.0 broadcast:128.128.255.255 Both of them is up when i use ifconfig command. I want develop a program that

Re: How can i use multiple ethernet card for data transfer in my program( in C language)?

2002-11-06 Thread David Siebörger
At 7:30 PM on Wednesday 6 November 2002, Alireza Mahini wrote: I have two ethernet card(NIC)im my computer .Their characteristics are: name:rl0 ip:128.128.64.235 netmask:255.255.0.0 broadcast:128.128.255.255 name:rl1 ip:128.128.65.235 netmask:255.255.0.0 broadcast:128.128.255.255

How can i use multiple ethernet card for data transfer in my program( in C language)?

2002-11-03 Thread alireza mahini
I have 2 ethernet card {rl0 with inet 128.128.64.235 and rl1 with inet128.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(...);

How can i use multiple ethernet card for data transfer?

2002-11-02 Thread alireza mahini
I have two ethernet interface that installed with varient ips(rl0 , rl1) .I want send data from one ofthem that i like but data sent to outside of my computer from rl0. I bind ip address of rl1 and use sendto function in my program but data go out from rl0 to the remout address.please guide me.

How can i use multiple ethernet card for data transfer?

2002-11-02 Thread alireza mahini
I have two ethernet card(lan card)in my system. they have varient IPs.My OS(FreeBSD 4.4) known them as rl0 ,rl1. I want send data from the card that i like but data only sent from rl0. In my program i act as below: ... bind();//bind in rl1 sendto();//send from a socket that bind at rl1