Fawkes API
Fawkes Development Version
|
FireVision Network Tool. More...
Public Member Functions | |
FireVisionNetworkTool (ArgumentParser *argp) | |
Constructor. More... | |
void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version) throw () |
Invalid version string received. More... | |
virtual void | fuse_connection_established () throw () |
Connection has been established. More... | |
virtual void | fuse_connection_died () throw () |
Connection died. More... | |
virtual void | fuse_inbound_received (FuseNetworkMessage *m) throw () |
Message received. More... | |
virtual void | all_for_now () |
All results have been retrieved. More... | |
virtual void | cache_exhausted () |
Cache exhausted. More... | |
virtual void | browse_failed (const char *name, const char *type, const char *domain) |
Failed to browse for a given service. More... | |
virtual void | service_added (const char *name, const char *type, const char *domain, const char *host_name, const char *interface, const struct sockaddr *addr, const socklen_t addr_size, uint16_t port, std::list< std::string > &txt, int flags) |
A service has been announced on the network. More... | |
virtual void | service_removed (const char *name, const char *type, const char *domain) |
A service has been removed from the network. More... | |
void | print_usage () |
Print usage message. More... | |
void | get_image (const char *image_id, bool jpeg) |
Request image. More... | |
void | get_colormap (const char *lut_id) |
Request LUT. More... | |
void | set_colormap (const char *lut_id) |
Upload LUT. More... | |
void | show_all () |
Show all images and LUTs. More... | |
void | explore_network () |
Explore network. More... | |
void | run () |
Run. More... | |
![]() | |
virtual | ~FuseClientHandler () |
Destructor. More... | |
![]() | |
virtual | ~ServiceBrowseHandler () |
Virtual destructor. More... | |
|
inline |
|
inlinevirtual |
All results have been retrieved.
If you read the DNS-SD specs you will see that there is no explicit "not existent" or "end of records" message - it cannot be. But after some time it is assumed that there are no more records. If that is the case this method is called.
Implements fawkes::ServiceBrowseHandler.
|
inlinevirtual |
Failed to browse for a given service.
name | name of the service |
type | type of the service |
domain | domain of the service |
Implements fawkes::ServiceBrowseHandler.
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Connection has been established.
Implements firevision::FuseClientHandler.
|
inlinevirtual |
Message received.
An incoming message has been received and can now be processed. Note that if you want to work on the message after this method has finished you have to reference the message by calling FuseMessage::ref()!
m | message to handle |
Implements firevision::FuseClientHandler.
Definition at line 92 of file net.cpp.
References firevision::ColormapFile::add_colormap(), fawkes::Exception::append(), firevision::FuseLutContent::buffer(), firevision::FuseImageContent::buffer(), firevision::FuseImageContent::buffer_size(), firevision::FUSE_lutinfo_t::bytes_per_cell, firevision::FuseImageContent::colorspace(), firevision::FUSE_imageinfo_t::colorspace, firevision::FuseLutContent::depth(), firevision::FUSE_lutinfo_t::depth, firevision::FuseImageContent::format(), firevision::FuseImageListContent::has_next(), firevision::FuseLutListContent::has_next(), firevision::FuseLutContent::height(), firevision::FUSE_imageinfo_t::height, firevision::FUSE_lutinfo_t::height, firevision::FUSE_imageinfo_t::image_id, firevision::FUSE_lutdesc_message_t::lut_id, firevision::FUSE_lutinfo_t::lut_id, firevision::FuseImageListContent::next(), firevision::FuseLutListContent::next(), firevision::FuseImageContent::pixel_height(), firevision::FuseImageContent::pixel_width(), fawkes::Exception::print_trace(), firevision::YuvColormap::set(), firevision::FuseLutContent::width(), firevision::FUSE_imageinfo_t::width, firevision::FUSE_lutinfo_t::width, firevision::FvRawWriter::write(), and firevision::FireVisionDataFile::write().
|
inlinevirtual |
Invalid version string received.
The remote end has a different incompatible FUSE version.
local_version | version that the FuseClient speaks |
remote_version | version that the remote FUSE server speaks. |
Implements firevision::FuseClientHandler.
|
inline |
Request LUT.
lut_id | LUT ID. |
Definition at line 330 of file net.cpp.
References firevision::FUSE_lutdesc_message_t::lut_id.
|
inline |
Request image.
image_id | Image ID. |
jpeg | if true JPEG images are requested, raw images otherwise |
Definition at line 317 of file net.cpp.
References firevision::FUSE_imagereq_message_t::format, and firevision::FUSE_imagereq_message_t::image_id.
|
inline |
|
inline |
|
inlinevirtual |
A service has been announced on the network.
name | name of the service |
type | type of the service |
domain | domain of the service |
host_name | name of the host that provides the service |
interface | name of network interface to reach service |
addr | pointer to sockaddr struct of appropriate type for address |
addr_size | size of addr struct |
port | port of the service |
txt | list of txt records. |
flags | extra flags, see Avahi documentation |
Implements fawkes::ServiceBrowseHandler.
Definition at line 249 of file net.cpp.
References fawkes::c_blue, and fawkes::c_normal.
|
inlinevirtual |
A service has been removed from the network.
name | name of the service |
type | type of the service |
domain | domain of the service |
Implements fawkes::ServiceBrowseHandler.
|
inline |
Upload LUT.
lut_id | LUT ID. |
Definition at line 342 of file net.cpp.
References firevision::Colormap::depth(), firevision::Colormap::get_buffer(), firevision::ColormapFile::get_colormap(), firevision::Colormap::height(), firevision::FireVisionDataFile::read(), and firevision::Colormap::width().
|
inline |