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
An abstract class for servers based on sockets.
說明
A socket server.
方法
is_connection_available() const |
|
is_listening() const |
|
void |
stop() |
方法說明
bool is_connection_available() const 🔗
如果有連接可供獲取,則返回 true。
如果伺服器目前正在偵聽連接,則返回 true。
void stop() 🔗
停止監聽。
StreamPeerSocket take_socket_connection() 🔗
If a connection is available, returns a StreamPeerSocket with the connection.