httpserver.h
来自「good examples for omnet++」· C头文件 代码 · 共 39 行
H
39 行
//
// 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 + =
减小字号Ctrl + -
显示快捷键?