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

Eredita: RefCounted < Object

Ereditato da: TCPServer, UDSServer

An abstract class for servers based on sockets.

Descrizione

A socket server.

Metodi

bool

is_connection_available() const

bool

is_listening() const

void

stop()

StreamPeerSocket

take_socket_connection()


Descrizioni dei metodi

bool is_connection_available() const 🔗

Restituisce true se una connessione è disponibile per l'uso.


bool is_listening() const 🔗

Restituisce true se il server è attualmente in ascolto per nuove connessioni.


void stop() 🔗

Smette di ascoltare.


StreamPeerSocket take_socket_connection() 🔗

If a connection is available, returns a StreamPeerSocket with the connection.