跳到主要内容

init

初始化 ssl, 并将 socket 交给 wolfssl 管理

声明

bool init(socket _fd, int timeout = 3, string host = nil)

参数

参数名描述
_fdsocket
timeout超时时间
host目标主机名, 支持SNI

返回值

true: 初始化成功, false: 初始化失败

使用方式

返回文档