Epc – libepc-1.0 Reference Manual
Epc
Description:
public
namespace
Epc
Namespace:
Epc
Package:
libepc-1.0
Content:
Classes:
AuthContext
Consumer
-
Public fields of the
Consumer
class.
Contents
Dispatcher
-
Public fields of the
Dispatcher
class.
Publisher
-
Public fields of the
Publisher
class.
ServiceInfo
ServiceMonitor
-
Public fields of the
ServiceMonitor
class.
Enums:
AddressFamily
-
The address family to use for contacting network services.
AuthFlags
-
These flags specify the authentication behaviour of an
Publisher
.
CollisionHandling
-
Various strategies for handling service name collisions.
Protocol
-
The transport protocols supported by libepc.
Constants:
public
const
string
SERVICE_TYPE_HTTP
public
const
string
SERVICE_TYPE_HTTPS
Delegates:
public
delegate
bool
AuthHandler
(
AuthContext
context,
string
username)
Functions implementing this callback shall return
true
when the credentials provided by the authentication request grant access to the resource described by
context
.
public
delegate
unowned
Contents
ContentsHandler
(
Publisher
publisher,
string
key)
This callback is used to generate custom contents published with the
add_handler
function.
public
delegate
bool
ContentsReadFunc
(
Contents
contents,
void
* buffer,
size_t
length)
This callback is used to retrieve the next chunk of data for a streaming contents buffer created with
stream_read
.
Methods:
public
unowned
EnumClass
address_family_get_class
()
public
unowned
FlagsClass
auth_flags_get_class
()
public
unowned
string
auth_flags_to_string
(
AuthFlags
value)
public
unowned
EnumClass
collision_handling_get_class
()
public
unowned
string
collision_handling_to_string
(
CollisionHandling
value)
public
Quark
http_error_quark
()
public
unowned
string
protocol_build_uri
(
Protocol
protocol,
string
hostname,
uint16
port,
string
path)
public
Protocol
protocol_from_name
(
string
name,
Protocol
fallback)
public
unowned
EnumClass
protocol_get_class
()
public
unowned
string
protocol_get_service_type
(
Protocol
protocol)
public
unowned
string
protocol_get_uri_scheme
(
Protocol
protocol)
public
unowned
string
protocol_to_string
(
Protocol
value)
public
unowned
string
service_type_get_base
(
string
type)
public
Protocol
service_type_get_protocol
(
string
service_type)
public
unowned
string
service_type_list_supported
(
string
application)
public
unowned
string
service_type_new
(
Protocol
protocol,
string
application)
2022 vala-language.org