📄 connect.h~
字号:
#ifndef MSPACEAGENTS_H#define MSPACEAGENTS_H#include <string>#include <sstream>#include <netinet/in.h>#include <stdio.h>#include <unistd.h>#include <iostream>#include <time.h>#include <sys/types.h>#include "worldmodel.h"#define buffer_size 8192namespace MSpace {/**the main class for agent actions;@author root*/class Connect{public: Connect(); void PutOutput(const char* out); void PutOutputs(const std::string& str); bool SelectInput(); bool GetInput(); char* GetMsg(); ~Connect(); int MessageLength;private: int mReadFd ; int mWriteFd ; char mBuffer[buffer_size];};}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -