Server
Object Hierarchy:
VSGI.Server
VSGI.Server
VSGI.Server
GLib.Object
GLib.Object
GLib.Object->VSGI.Server
Description:
[ Version ( since = "0.1" ) ]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:
protected bool dispatch (Request req, Response res) throws Error
Dispatch the request to the application callback.
protected async bool dispatch_async (Request req, Response res) throws Error
Dispatch the request asynchronously.
public virtual Pid fork () throws Error
Fork the execution.
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 int run (string [] args = new string [0 ] {})
public abstract void stop ()
Stop accepting new connections.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref