.TH "shevek::avahi" 3 "Wed Jul 9 2014" "libshevek" \" -*- nroff -*- .ad l .nh .SH NAME shevek::avahi \- .PP Serve and browse the local network using avahi\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBshevek::refbase\fP\&. .SS "Classes" .in +1c .ti -1c .RI "class \fBbrowser\fP" .br .RI "\fIClass for browsing other hosts\&. \fP" .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "void \fBpublish\fP (Glib::ustring const &protocol, int port)" .br .RI "\fIPublish a service on a port\&. \fP" .ti -1c .RI "Glib::RefPtr< \fBbrowser\fP > \fBcreate_browser\fP (Glib::ustring const &protocol)" .br .RI "\fICreate a browser and populate it with a list of available hosts for the requested protocol\&. \fP" .ti -1c .RI "\fB~avahi\fP ()" .br .RI "\fIUnpublish all ports and free all structures associated with the object\&. \fP" .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static Glib::RefPtr< \fBavahi\fP > \fBcreate\fP (Glib::ustring const &name=Glib::ustring())" .br .RI "\fICreate an avahi object for serving and/or browsing\&. \fP" .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP Serve and browse the local network using avahi\&. Easy to use interface for serving and browsing avahi-supporting hosts\&. Note that it is not as configurable as using libavahi directly\&. .SH "Member Function Documentation" .PP .SS "Glib::RefPtr< \fBavahi::browser\fP > shevek::avahi::create_browser (Glib::ustring const &protocol)\fC [inline]\fP" .PP Create a browser and populate it with a list of available hosts for the requested protocol\&. The browser must not contain a leading underscore, and must not contain the protocol specification\&. The actual requested port is _NAME\&._tcp\&. It is not possible to browse udp with this class\&. .SS "void shevek::avahi::publish (Glib::ustring const &protocol, intport)" .PP Publish a service on a port\&. The protocol is the name of the protocol, without leading underscore and without protocol specification\&. The published port is _NAME\&._tcp\&. It is not possible to publish over udp with this class\&. Note that you must separately set up a server to listen on the port\&. .SH "Author" .PP Generated automatically by Doxygen for libshevek from the source code\&.