[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: programming with interfaces
Hi
While binding the socket, specify the address of the required interface
ie. if you want to use eth0, then:
create socket (Use socket() system call)
bind (Use the IP address of eth0)
connect to the server (using connect())
If you're new to sockets, try 'man 7 socket' & man 2 socket, man connect,
man listen ....etc.
Sreeji
On Wed, 20 Dec 2000, senthil devan wrote:
> Hi
>
> My comp has two ethernet cards (eth0,eth1). I have configured GRE interface
> also(gre0). Now I want to send datagram packets over the interface of my
> choice. I want to do it in a program. Any help will be appreciated
>
> Regards,
>
> Devan
>
>
>
> ---------------------------------------------
> Find out more about this and other Linux India
> mailing lists at http://lists.linux-india.org/
>