SocketService.stop

Stops the service, i.e. stops accepting connections from the added sockets when the mainloop runs.

This call is thread-safe, so it may be called from a thread handling an incoming client request.

Note that this only stops accepting new connections; it does not close the listening sockets, and you can call gio.socket_service.SocketService.start again later to begin listening again. To close the listening sockets, call gio.socket_listener.SocketListener.close. (This will happen automatically when the #GSocketService is finalized.)

This must be called before calling gio.socket_listener.SocketListener.close as the socket service will start accepting connections immediately when a new socket is added.

class SocketService
void
stop
()