00001 #ifndef __IP_H 00002 # define __IP_H 00003 00008 #ifdef __cplusplus 00009 extern "C" { 00010 #endif 00011 00014 typedef enum { 00016 IP_OK = 0, 00018 IP_PARAM, 00020 IP_INIT, 00022 IP_SOCK, 00024 IP_SETSOCKOPT, 00026 IP_BIND, 00028 IP_SEND 00029 } t_ip_err; 00030 00036 short ip_init(); 00037 00042 void ip_cleanup(); 00043 00049 t_ip_err ip_udpbcsend(const char *aString, unsigned int aPort); 00050 00057 t_ip_err ip_udpbcprint(unsigned int aPort, const char *anFmt, ...); 00058 00059 #ifdef __cplusplus 00060 } 00061 #endif 00062 00063 #endif