Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
tcp.h
Package: FindMail.zip [view]
Upload User: feituo2008
Upload Date: 2013-02-02
Package Size: 493k
Code Size: 1k
Category:
Email Client
Development Platform:
Visual C++
- #ifndef __TCP_H__
- #define __TCP_H__
- #include <winsock.h>
- #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, int f_noblock);
- 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);
- int tcp_gethostnamebyip(char *ip, char *name);
- unsigned short tcp_htons(unsigned short);
- unsigned short tcp_ntohs(unsigned short);
- unsigned long int tcp_htonl(unsigned long int);
- unsigned long int tcp_ntohl(unsigned long int);
- unsigned __int64 tcp_ntohh(unsigned __int64);
- unsigned __int64 tcp_htonh(unsigned __int64);
- float tcp_htonf(float f);
- float tcp_ntohf(float f);
- double tcp_htond(double d);
- double tcp_ntohd(double d);
- char *get_remote_ip(int sd, char *ip);
- #endif