tcp.h
资源名称:update.zip [点击查看]
上传用户:wangying89
上传日期:2007-01-07
资源大小:61k
文件大小:0k
源码类别:
Ftp客户端
开发平台:
Visual C++
- #define WM_TCP WM_APP+100
- extern int sd_connect, sd_bind, sd_accept;
- int tcp_init();
- int tcp_exit();
- int tcp_status(int sd, char *type, int timeout);
- int tcp_bind(HWND hWnd, int port);
- int tcp_accept(int sd, int timeout);
- int tcp_connect(char *hostname, int port, int timeout);
- void tcp_disconnect(int sd);
- void tcp_close(int sd);
- int tcp_send(int sd, char *buf, int len, int timeout);
- int tcp_recv(int sd, char *buf, int len, int timeout);