Server
Object Hierarchy:
Description:
public abstract class Server : Object
Server that feeds a VSGI.Handler with incoming requests.
Once you have initialized a Server instance, start it by calling GLib.Application.run with the command-line
arguments or a set of predefined arguments.
The server should be implemented by overriding the GLib.Application.command_line signal.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public abstract void listen (SocketAddress? address = null) throws Error
Prepare the server for listening on the provided socket address.
- public abstract void listen_socket (Socket socket) throws Error
Prepare the server for listening on the provided socket.
- public abstract void stop ()
Stop accepting new connections.
- public virtual Pid fork () throws Error
Fork the execution.
- protected async bool dispatch_async (Request req, Response res, int priority = DEFAULT) throws Error
Dispatch the request to the application callback.
- public int run (string[] args = new string[0] {})
Inherited Members:
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count