| libinfinity-0.4 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | ||||
#include <libinfinity/common/inf-local-publisher.h>
InfLocalPublisher;
InfLocalPublisherIface;
InfLocalPublisherItem;
InfLocalPublisherItem * inf_local_publisher_publish (InfLocalPublisher *publisher,
const gchar *type,
const gchar *name,
guint port);
void inf_local_publisher_unpublish (InfLocalPublisher *publisher,
InfLocalPublisherItem *item);
typedef struct _InfLocalPublisher InfLocalPublisher;
InfLocalPublisher is an opaque data type. You should only access it via the public API functions.
typedef struct {
} InfLocalPublisherIface;
Virtual functions for InfLocalPublisher.
typedef struct _InfLocalPublisherItem InfLocalPublisherItem;
InfLocalPublisherItem is an opaque data type. You should only access it via the public API functions.
InfLocalPublisherItem * inf_local_publisher_publish (InfLocalPublisher *publisher, const gchar *type, const gchar *name, guint port);
Publishes a service through publisher so that it can be discovered with
an appropriate InfDiscovery.
|
A InfLocalPublisher. |
|
The service type to publish, such as _http._tcp. |
|
The name of the service. |
|
The port the service is listening on. |
Returns : |
A InfLocalPublisherItem that can be used to unpublish the service again. |
void inf_local_publisher_unpublish (InfLocalPublisher *publisher, InfLocalPublisherItem *item);
Unpublishes item so that it can no longer be found in the network.
|
A InfLocalPublisher. |
|
A published item obtained from inf_local_publisher_publish().
|