SocketServer
Inherits: RefCounted < Object
Inherited by: TCPServer, UDSServer
Description
Section titled “Description”An abstract class for servers based on sockets.
A socket server.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| bool | is_connection_available() const |
| bool | is_listening() const |
| void | stop() |
| StreamPeerSocket | take_socket_connection() |
Method descriptions
Section titled “Method descriptions”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.
