NSUKit 1.4.0
板卡级统一交互接口
载入中...
搜索中...
未找到
c_socket.h 文件参考
#include <iostream>
#include <cstdio>
#include <string>
#include <utility>
#include "type.h"

浏览源代码.

class  nsukit::SocketGenerator
 

命名空间

namespace  nsukit
 

宏定义

#define LISTEN_COUNT   5
 
#define SELECT_TIMEOUT   1
 
#define RECV_DEFAULT_TIMEOUT   5000
 
#define BLOCK_SIZE   1024
 

函数

int nsukit::TcpRecvBytes (SocketGenerator *s, char *buf, size_t len, bool *stopped=nullptr)
 
int nsukit::TcpSendBytes (SocketGenerator *s, char *buf, size_t len, bool *stopped=nullptr)
 

宏定义说明

◆ BLOCK_SIZE

#define BLOCK_SIZE   1024

在文件 c_socket.h34 行定义.

◆ LISTEN_COUNT

#define LISTEN_COUNT   5

在文件 c_socket.h31 行定义.

◆ RECV_DEFAULT_TIMEOUT

#define RECV_DEFAULT_TIMEOUT   5000

在文件 c_socket.h33 行定义.

◆ SELECT_TIMEOUT

#define SELECT_TIMEOUT   1

在文件 c_socket.h32 行定义.