Preparing search index...
The search index is not available
nodewox
nodewox
"net"
connect
Function connect
connect
(
options
:
{
host
:
string
;
port
:
number
;
}
)
:
Promise
<
TcpSocket
>
通过Tcp连接到远程主机,并返回TcpSocket对象
Returns
Promise
Parameters
options:
{
host
:
string
;
port
:
number
;
}
host
:
string
远端主机名或IP
port
:
number
连接端口
Returns
Promise
<
TcpSocket
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
nodewox
"audio"
"display"
"encdec"
"events"
"fs"
"graphics"
"http"
"math"
"net"
"nodewox"
gpio
i2c
i2s
spi
uart
"sys"
"usb"
Tcp
Socket
connect
ntp
通过Tcp连接到远程主机,并返回TcpSocket对象
Returns
Promise