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

Hérite de : RefCounted < Object

Hérité par : TCPServer, UDSServer

An abstract class for servers based on sockets.

Description

A socket server.

Méthodes

bool

is_connection_available() const

bool

is_listening() const

void

stop()

StreamPeerSocket

take_socket_connection()


Descriptions des méthodes

bool is_connection_available() const 🔗

Renvoie true si une connexion est disponible pour être utilisée.


bool is_listening() const 🔗

Renvoie true si un serveur écoute actuellement pour de nouvelles connexions.


void stop() 🔗

Arrête d'écouter.


StreamPeerSocket take_socket_connection() 🔗

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