![]() |
NSUKit
1.4.0
板卡级统一交互接口
|
#include <c_socket.h>
Public 成员函数 | |
| SocketGenerator (unsigned short int port=0, std::string ip="", bool mode=true) | |
| ~SocketGenerator () | |
| void | Init (bool update, unsigned short int port=0, std::string ip="") |
| int | AcceptClient () |
| int | ConnectServer (float connect_time=SELECT_TIMEOUT) |
| int | RecvData (int s, char *buf, int len) |
| int | SendData (int s, char *buf, int len) |
| void | CloseSock (int s) |
| unsigned short int | GetPort () const |
| std::string | GetIp () |
Public 属性 | |
| int | recvTimeout |
| int | tcpServer {} |
| int | tcpClient {} |
| bool | tcpClientConnected |
在文件 c_socket.h 第 70 行定义.
|
explicit |
在文件 c_socket.cpp 第 7 行定义.
| SocketGenerator::~SocketGenerator | ( | ) |
在文件 c_socket.cpp 第 13 行定义.
| int SocketGenerator::AcceptClient | ( | ) |
在文件 c_socket.cpp 第 154 行定义.
| void SocketGenerator::CloseSock | ( | int | s | ) |
在文件 c_socket.cpp 第 192 行定义.
| int SocketGenerator::ConnectServer | ( | float | connect_time = SELECT_TIMEOUT | ) |
在文件 c_socket.cpp 第 99 行定义.
|
inline |
在文件 c_socket.h 第 112 行定义.
|
inline |
在文件 c_socket.h 第 108 行定义.
| void SocketGenerator::Init | ( | bool | update, |
| unsigned short int | port = 0, |
||
| std::string | ip = "" |
||
| ) |
在文件 c_socket.cpp 第 20 行定义.
| int SocketGenerator::RecvData | ( | int | s, |
| char * | buf, | ||
| int | len | ||
| ) |
在文件 c_socket.cpp 第 170 行定义.
| int SocketGenerator::SendData | ( | int | s, |
| char * | buf, | ||
| int | len | ||
| ) |
在文件 c_socket.cpp 第 181 行定义.
| int nsukit::SocketGenerator::recvTimeout |
在文件 c_socket.h 第 85 行定义.
| int nsukit::SocketGenerator::tcpClient {} |
在文件 c_socket.h 第 88 行定义.
| bool nsukit::SocketGenerator::tcpClientConnected |
在文件 c_socket.h 第 89 行定义.
| int nsukit::SocketGenerator::tcpServer {} |
在文件 c_socket.h 第 87 行定义.