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๏ƒ

Inherits: RefCounted < Object

Inherited By: TCPServer, UDSServer

An abstract class for servers based on sockets.

Description๏ƒ

A socket server.

Methods๏ƒ

bool

is_connection_available() const

bool

is_listening() const

void

stop()

StreamPeerSocket

take_socket_connection()


Method Descriptions๏ƒ

bool is_connection_available() const ๐Ÿ”—

Returns true if a connection is available for taking.


bool is_listening() const ๐Ÿ”—

Returns true if the server is currently listening for connections.


void stop() ๐Ÿ”—

Stops listening.


StreamPeerSocket take_socket_connection() ๐Ÿ”—

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