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
Hereda: RefCounted < Object
Heredado por: TCPServer, UDSServer
An abstract class for servers based on sockets.
Descripción
Un servidor de sockets.
Métodos
is_connection_available() const |
|
is_listening() const |
|
void |
stop() |
Descripciones de Métodos
bool is_connection_available() const 🔗
Devuelve true si hay una conexión disponible para tomar.
Devuelve true si el servidor está actualmente a la escucha de las conexiones.
void stop() 🔗
Para de escuchar.
StreamPeerSocket take_socket_connection() 🔗
Si hay una conexión disponible, devuelve un StreamPeerSocket con la conexión.