📄 httpserver.h
字号:
//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 1992-2005 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//
#ifndef __HTTPSERVER_H
#define __HTTPSERVER_H
#include <map>
#include <string>
#include "queuebase.h"
/**
* Simple model of an HTTP server.
*/
class HTTPServer : public QueueBase
{
private:
typedef std::map<std::string, std::string> StringMap;
StringMap htdocs;
protected:
virtual void initialize();
virtual simtime_t startService(cMessage *msg);
virtual void endService(cMessage *msg);
std::string processHTTPCommand(const char *req);
std::string getContentFor(const char *uri);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -