url.h
来自「基于Perl的HTTP协议GUI测试程序」· C头文件 代码 · 共 31 行
H
31 行
#ifndef URL_H
#define URL_H
#include "sock.h"
class CUrl
{
public:
char* host;
int port;
char* path;
SOCKADDR_IN addr;
CUrl();
virtual ~CUrl();
int parse(const char* url);
CUrl& operator=(const CUrl& r);
/** Changes the path part of the url */
void setPath(const char* newpath);
};
#ifndef WIN32
extern int stricmp(const char* s1, const char* s2);
extern int strnicmp(const char* s1, const char* s2, int n);
#endif // WIN32
#endif // URL_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?