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.

SocketServer

Hereda: RefCounted < Object

Heredado por: TCPServer, UDSServer

An abstract class for servers based on sockets.

Descripción

Un servidor de sockets.

Métodos

bool

is_connection_available() const

bool

is_listening() const

void

stop()

StreamPeerSocket

take_socket_connection()


Descripciones de Métodos

bool is_connection_available() const 🔗

Devuelve true si hay una conexión disponible para tomar.


bool is_listening() const 🔗

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.