Skip to content

SocketServer

Inherits: RefCounted < Object

Inherited by: TCPServer, UDSServer

An abstract class for servers based on sockets.

A socket server.

Returns Method
bool is_connection_available() const
bool is_listening() const
void stop()
StreamPeerSocket take_socket_connection()

is_connection_available

bool is_connection_available() const

Returns true if a connection is available for taking.

is_listening

bool is_listening() const

Returns true if the server is currently listening for connections.

stop

void stop()

Stops listening.

take_socket_connection

StreamPeerSocket take_socket_connection()

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