Top | ![]() |
![]() |
![]() |
![]() |
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.
void inf_local_publisher_unpublish (InfLocalPublisher *publisher
,InfLocalPublisherItem *item
);
Unpublishes item
so that it can no longer be found in the network.
typedef struct _InfLocalPublisher InfLocalPublisher;
InfLocalPublisher is an opaque data type. You should only access it via the public API functions.
struct InfLocalPublisherInterface { InfLocalPublisherItem* (*publish)(InfLocalPublisher* publisher, const gchar* type, const gchar* name, guint port); void (*unpublish)(InfLocalPublisher* publisher, InfLocalPublisherItem* item); };
Virtual functions for InfLocalPublisher.
Virtual function to announce a service of the given type with
the given name on the given port. The returned InfLocalPublisherItem is
valid as long as the service is published and the InfLocalPublisher is
alive. It can be used to unpublish the service again using the |
||
Virtual function to unpublish a previously published service. |
typedef struct _InfLocalPublisherItem InfLocalPublisherItem;
InfLocalPublisherItem is an opaque data type. You should only access it via the public API functions.