Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
SocketServer
继承: RefCounted < Object
基于套接字的服务器的抽象类。
描述
套接字服务器。
方法
is_connection_available() const |
|
is_listening() const |
|
void |
stop() |
方法说明
bool is_connection_available() const 🔗
如果有连接可供获取,则返回 true。
如果服务器当前正在侦听连接,则返回 true。
void stop() 🔗
停止监听。
StreamPeerSocket take_socket_connection() 🔗
如果连接可用,则返回带有该连接的 StreamPeerSocket。