Class
VarlinkServerProtocol
Description [src]
final class Varlink.ServerProtocol : Varlink.Protocol
{
/* No available fields */
}
VarlinkServerProtocol is a varlink protocol connection used by servers.
It reads incoming method-call frames, resolves them through a
VarlinkServerRegistry, and dispatches them to registered handlers.
Instance methods
varlink_server_protocol_dispatch_one
Protocol-level read/write failures are returned to the caller. Malformed
Varlink method calls and unknown methods are handled by sending a standard
Varlink error reply and returning TRUE.
Methods inherited from VarlinkProtocol (2)
varlink_protocol_is_upgraded
Checks if self has been upgraded from Varlink framing to another protocol.
varlink_protocol_write_with_unix_fd_list
Writes message and attaches fd_list to the frame using SCM_RIGHTS.
Methods inherited from GIOStream (10)
g_io_stream_clear_pending
Clears the pending flag on stream.
g_io_stream_close
Closes the stream, releasing resources related to it. This will also close the individual input and output streams, if they are not already closed.
g_io_stream_close_async
Requests an asynchronous close of the stream, releasing resources
related to it. When the operation is finished callback will be
called. You can then call g_io_stream_close_finish() to get
the result of the operation.
g_io_stream_close_finish
Closes a stream.
g_io_stream_get_input_stream
Gets the input stream for this object. This is used for reading.
g_io_stream_get_output_stream
Gets the output stream for this object. This is used for writing.
g_io_stream_has_pending
Checks if a stream has pending actions.
g_io_stream_is_closed
Checks if a stream is closed.
g_io_stream_set_pending
Sets stream to have actions pending. If the pending flag is
already set or stream is closed, it will return FALSE and set
error.
g_io_stream_splice_async
Asynchronously splice the output stream of stream1 to the input stream of
stream2, and splice the output stream of stream2 to the input stream of
stream1.
Properties
Properties inherited from VarlinkProtocol (1)
Properties inherited from GIOStream (3)
Gio.IOStream:closed
Whether the stream is closed.
Gio.IOStream:input-stream
The GInputStream to read from.
Gio.IOStream:output-stream
The GOutputStream to write to.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.