Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: network related
PostPosted: Tue Dec 06, 2011 9:36 am 
Offline

Joined: Tue Nov 29, 2011 7:56 am
Posts: 10
Hi!
I have system in which arm linux is running. In system interface for wi-fi, ethernet and broadband are given.
If i configure the ip address of ethernet interface and wi-fi interface in same subnet then if i open any socket then it will try to communicate through ethernet interface, but i want to comminicate through wi-fi interface. Is there any option to specify from which interface to communicate.


Top
 Profile  
 
 Post subject: Re: network related
PostPosted: Wed Dec 07, 2011 9:28 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

> Is there any option to specify from which interface to communicate.

Look up the man page for setsocketopt() and the SO_BINDTODEVICE option which allows the socket to be associated with an interface name before the bind() operation.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: