⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wsp.h

📁 WAP协议1.2源码!!!!!!!!!!!!!!!!!!!!
💻 H
字号:
#ifndef _WSP_H
#define _WSP_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dos.h>
#include <time.h>
#include "ETR_PPP.H"


enum
{
	WAP_CONTINUE                            = 0x10,
	WAP_SWITCHING_PROTOCOLS                 = 0x11,
  WAP_OK                                  = 0x21,
  WAP_CREATE                              = 0x21,
	WAP_ACCEPTED                            = 0x22,
	WAP_NON_AUTHORITATIVE_INFORMATION       = 0x23,
	WAP_NO_CONTENT                          = 0x24,
	WAP_RESET_CONTENT                       = 0x25,
	WAP_PARTIAL_CONTENT                     = 0x26,
	WAP_MULTIPLE_CHOICES                    = 0x30,
	WAP_MOVED_PERMANENTLY                   = 0x31,
	WAP_MOVED_TEMPORARILY                   = 0x32,
	WAP_SEE_OTHER                           = 0x33,
	WAP_NOT_MODIFIED                        = 0x34,
	WAP_USE_PROXY                           = 0x35,
	WAP_RESERVED                            = 0x36,
	WAP_TEMPORARY_REDIRECT                  = 0x37,
	WAP_BAD_REQUEST                         = 0x40,
	WAP_UNAUTHORIZED                        = 0x41,
	WAP_PAYMENT_REQUIRED                    = 0x42,
	WAP_FORBIDDEN                           = 0x43,
	WAP_NOT_FOUND                           = 0x44,
	WAP_METHOD_NOT_ALLOWED                  = 0x45,
	WAP_NOT_ACCEPTABLE                      = 0x46,
	WAP_PROXY_AUTHENTICATION_REQUIRED       = 0x47,
	WAP_REQUEST_TIMEOUT                     = 0x48,
	WAP_CONFLICT                            = 0x49,
	WAP_GONE                                = 0x4a,
	WAP_LENGTH_REQUIRED                     = 0x4b,
	WAP_PRECONDITION_FAILED                 = 0x4c,
	WAP_REQUEST_ENTITY_TOO_LARGE            = 0x4d,
	WAP_REQUEST_URI_TOO_LARGE               = 0x4e,
	WAP_UNSUPPORTED_MEDIA_TYPE              = 0x4f,
	WAP_REQUESTED_RANGE_NOT_SATISFIABLE     = 0x50,
	WAP_EXPECTATION_FAILED                  = 0x51,
	WAP_INTERNAL_SERVER_ERROR               = 0x60,
	WAP_NOT_IMPLEMENTED                     = 0x61,
	WAP_BAD_GATEWAY                         = 0x62,
	WAP_SERVICE_UNAVAILABLE                 = 0x63,
	WAP_GATEWAY_TIMEOUT                     = 0x64,
	WAP_HTTP_VERSION_NOT_SUPPORTED          = 0x65,

};


#define TARGET_MMS 1
#define TARGET_WAP_BROWSER 2

#define METHOD_GET  1
#define METHOD_POST 2

// wsp init
int WspInit(int target, char *host, int port);

// connect
int WspConnect();

// is connect established
int WspIsConnectEstablished();

// disconnect
int WspDisconenct();

// method invoke, the data buffer must be <= 2000, because of 
// the limitation of system memory
int WspMethodInvoke( int method, char *url, char *data, int len );

// result reply
int WspReply( int *status, char *data, int len );
 
// wsp close
int WspClose();         

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -