00001 00025 #ifndef _GAIM_NETWORK_H_ 00026 #define _GAIM_NETWORK_H_ 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 /**************************************************************************/ 00034 /**************************************************************************/ 00042 void gaim_network_set_local_ip(const char *ip); 00043 00052 const char *gaim_network_get_local_ip(void); 00053 00066 const char *gaim_network_get_local_system_ip(int fd); 00067 00088 const char *gaim_network_get_ip_for_account(const GaimAccount *account, int fd); 00089 00108 int gaim_network_listen(unsigned short port); 00109 00133 int gaim_network_listen_range(unsigned short start, unsigned short end); 00134 00143 short gaim_network_get_port_from_fd(int fd); 00144 00148 void gaim_network_init(void); 00149 00152 #ifdef __cplusplus 00153 } 00154 #endif 00155 00156 #endif /* _GAIM_NETWORK_H_ */