www.pudn.com > FindMail.zip > udp.h


// by paladin, http://www.programsalon.com, netcom@163.net 
#ifndef _UDP_H_ 
#define _UDP_H_ 
 
#include  
 
int udp_init(); 
int udp_exit(); 
 
int udp_connect(char *host, int port); 
int udp_send(int sd, char *buf, int len); 
int udp_sendto(int sd, char *host, int port, char *buf, int len); 
int udp_recv(int sd, char *buf, int len, int timeout); 
int udp_recvfrom(int sd, char *host, int port, char *buf, int len, int timeout); 
int udp_close(int sd); 
 
#endif  // ifndef _UDP_H_