My project involves transmitting a packet of data via the LAN / Wireless module. The Wireless Module is attached to our device (which is not a mobile).
I have to give priority for Data transmission through the LAN. I wil start sending data via the LAN network and when the LAN network is unplugged or getting disconnected, I have to send the data via the Wireless module, this transmission can be seamless or can also stop and restart the entire data transmission process. So can any one let me know how to switch b/w the WLAN & LAN. Also how to configure the LAn for various DHCP probabilities(like enabling & disabling them)
You will need to use socket to do so. LAN and WLAN will provide you with an IP address for each network interface. First bind your socket to the LAN's IP address that you connected to, then if you want to use Wireless Module, you will need to rebind that socket to the new IP address (IP address of WLAN).