www.pudn.com > inet_stock.zip > PCTCP.H
#ifndef _WPCTCP_INC_ #define _WPCTCP_INC_ #include#ifdef __cplusplus extern "C" { #endif #define MAJOR_VERSION 1 #define MINOR_VERSION 2 #define PROTO_TCP 1 #define PROTO_UDP 2 extern int PROTO_USE; #define PORT_HQ (UINT)32255 #define PORT_JY (UINT)32256 #define MAX_WRITE_BUF_SIZE 2048 #define MAX_READ_BUF_SIZE 4096 #define MAX_UDP_TRY_TIME 8 char HostName[40]; int PCTCPInit(void); int PCTCPExit(void); int PCTCPClose(void); int ConnectHost(int, int); long UDPRead(BOOL fstop); int PCTCPStop(void); void PCTCPPause(BOOL); long TCPRead(int read_len); long TCPWrite(void); int check_socket_status(int sd); void WriteMsg(LPSTR); int ConnectToJyHost(char *HostName); int BeginConnect(char *host); extern BOOL can_read; #ifdef _cplusplus } #endif #endif