Mercurial > pidgin.yaz
comparison libgaim/network.h @ 14696:34083fe39891
[gaim-migrate @ 17448]
From Paul Betts, NetworkManager integration. This will smartly disconnect and reconnect
accounts according to network availability. Probably needs some more tweaking.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 08 Oct 2006 08:40:09 +0000 |
parents | 645598a4ec04 |
children |
comparison
equal
deleted
inserted
replaced
14695:fa0c8fa2b5a7 | 14696:34083fe39891 |
---|---|
186 * @return The port number, in host byte order. | 186 * @return The port number, in host byte order. |
187 */ | 187 */ |
188 unsigned short gaim_network_get_port_from_fd(int fd); | 188 unsigned short gaim_network_get_port_from_fd(int fd); |
189 | 189 |
190 /** | 190 /** |
191 * Detects if there is an available Internet connection. Note that this call | |
192 * could block for the amount of time specified in inet_detect_timeout, so | |
193 * using it in a UI thread may cause uncomfortableness | |
194 * | |
195 * @return TRUE if the Internet is available | |
196 */ | |
197 gboolean gaim_network_is_available(void); | |
198 | |
199 /** | |
191 * Initializes the network subsystem. | 200 * Initializes the network subsystem. |
192 */ | 201 */ |
193 void gaim_network_init(void); | 202 void gaim_network_init(void); |
203 | |
204 /** | |
205 * Shuts down the network subsystem. | |
206 */ | |
207 void gaim_network_uninit(void); | |
194 | 208 |
195 /*@}*/ | 209 /*@}*/ |
196 | 210 |
197 #ifdef __cplusplus | 211 #ifdef __cplusplus |
198 } | 212 } |