udp.h
Upload User: feituo2008
Upload Date: 2013-02-02
Package Size: 493k
Code Size: 0k
Category:

Email Client

Development Platform:

Visual C++

  1. // by paladin, http://www.programsalon.com, netcom@163.net
  2. #ifndef _UDP_H_
  3. #define _UDP_H_
  4. #include <winsock.h>
  5. int udp_init();
  6. int udp_exit();
  7. int udp_connect(char *host, int port);
  8. int udp_send(int sd, char *buf, int len);
  9. int udp_sendto(int sd, char *host, int port, char *buf, int len);
  10. int udp_recv(int sd, char *buf, int len, int timeout);
  11. int udp_recvfrom(int sd, char *host, int port, char *buf, int len, int timeout);
  12. int udp_close(int sd);
  13. #endif  // ifndef _UDP_H_