[maemo-developers] [maemo-developers] "Smartest" way to start network connection "before" socket connection is attempted to be made

From: Tomi Ollila tomi.ollila at guru.guru-group.fi
Date: Fri Mar 3 17:06:08 EET 2006
Hi


In a program I need to know the IP of the interface before doing
any network connections. 

So far the program has complained 'Please start network connection first'


But I'd like to have smarter solution, like do the automatic network
connection that LD_PRELOAD -trick does but not to connect anywhere.

Does anyone know a good way to achieve this, so that the network connection
stays alive and closes on request, or when the program exits (unless there
is someone else using the connection...).




Tomi



More information about the maemo-developers mailing list