📄 socketfactory.h
字号:
#ifndef UTILS_BASE_SOCKETFACTORY_H_#define UTILS_BASE_SOCKETFACTORY_H_#include "socket.h"#include "asyncsocket.h"namespace utils_base {class SocketFactory {public: virtual ~SocketFactory() {} // Returns a new socket for blocking communication. The type can be // SOCK_DGRAM and SOCK_STREAM. virtual Socket* CreateSocket(int type) = 0; // Returns a new socket for nonblocking communication. The type can be // SOCK_DGRAM and SOCK_STREAM. virtual AsyncSocket* CreateAsyncSocket(int type) = 0;};} // namespace utils_base#endif // UTILS_BASE_SOCKETFACTORY_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -