FireVision Network Tool. More...
Public Member Functions | |
FireVisionNetworkTool (ArgumentParser *argp) | |
Constructor. | |
void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version) throw () |
virtual void | fuse_connection_established () throw () |
virtual void | fuse_connection_died () throw () |
virtual void | fuse_inbound_received (FuseNetworkMessage *m) throw () |
virtual void | all_for_now () |
All results have been retrieved. | |
virtual void | cache_exhausted () |
Cache exhausted. | |
virtual void | browse_failed (const char *name, const char *type, const char *domain) |
Failed to browse for a given service. | |
virtual void | service_added (const char *name, const char *type, const char *domain, const char *host_name, 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. | |
virtual void | service_removed (const char *name, const char *type, const char *domain) |
A service has been removed from the network. | |
void | print_usage () |
Print usage message. | |
void | get_image (const char *image_id, bool jpeg) |
Request image. | |
void | get_colormap (const char *lut_id) |
Request LUT. | |
void | set_colormap (const char *lut_id) |
Upload LUT. | |
void | show_all () |
Show all images and LUTs. | |
void | explore_network () |
Explore network. | |
void | run () |
Run. |
FireVision Network Tool.
Definition at line 58 of file net.cpp.
FireVisionNetworkTool::FireVisionNetworkTool | ( | ArgumentParser * | argp | ) | [inline] |
virtual void FireVisionNetworkTool::all_for_now | ( | ) | [inline, virtual] |
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.
virtual void FireVisionNetworkTool::browse_failed | ( | const char * | name, | |
const char * | type, | |||
const char * | domain | |||
) | [inline, virtual] |
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.
virtual void FireVisionNetworkTool::cache_exhausted | ( | ) | [inline, virtual] |
void FireVisionNetworkTool::explore_network | ( | ) | [inline] |
void FireVisionNetworkTool::get_colormap | ( | const char * | lut_id | ) | [inline] |
Request LUT.
lut_id | LUT ID. |
Definition at line 329 of file net.cpp.
References firevision::FUSE_lutdesc_message_t::lut_id.
void FireVisionNetworkTool::get_image | ( | const char * | image_id, | |
bool | jpeg | |||
) | [inline] |
Request image.
image_id | Image ID. | |
jpeg | if true JPEG images are requested, raw images otherwise |
Definition at line 316 of file net.cpp.
References firevision::FUSE_imagereq_message_t::format, and firevision::FUSE_imagereq_message_t::image_id.
void FireVisionNetworkTool::print_usage | ( | ) | [inline] |
virtual void FireVisionNetworkTool::service_added | ( | const char * | name, | |
const char * | type, | |||
const char * | domain, | |||
const char * | host_name, | |||
const struct sockaddr * | addr, | |||
const socklen_t | addr_size, | |||
uint16_t | port, | |||
std::list< std::string > & | txt, | |||
int | flags | |||
) | [inline, virtual] |
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 | |
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.
virtual void FireVisionNetworkTool::service_removed | ( | const char * | name, | |
const char * | type, | |||
const char * | domain | |||
) | [inline, virtual] |
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.
void FireVisionNetworkTool::set_colormap | ( | const char * | lut_id | ) | [inline] |
Upload LUT.
lut_id | LUT ID. |
Definition at line 341 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().
void FireVisionNetworkTool::show_all | ( | ) | [inline] |