#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/Bonjour.hpp>
|
| | LookupSocket (Bonjour::TxtKeys txt_keys, std::string service, std::string service_dn, std::string protocol, Bonjour::ReplyFn replyfn, const boost::asio::ip::address &multicast_address, const boost::asio::ip::address &interface_address, std::shared_ptr< boost::asio::io_context > io_service) |
| | LookupSocket (Bonjour::TxtKeys txt_keys, std::string service, std::string service_dn, std::string protocol, Bonjour::ReplyFn replyfn, const boost::asio::ip::address &multicast_address, std::shared_ptr< boost::asio::io_context > io_service) |
| const Bonjour::TxtKeys | get_txt_keys () const |
| const std::string | get_service () const |
| const std::string | get_service_dn () const |
| void | send () |
| void | async_receive () |
| void | cancel () |
◆ LookupSocket() [1/2]
| Slic3r::LookupSocket::LookupSocket |
( |
Bonjour::TxtKeys | txt_keys, |
|
|
std::string | service, |
|
|
std::string | service_dn, |
|
|
std::string | protocol, |
|
|
Bonjour::ReplyFn | replyfn, |
|
|
const boost::asio::ip::address & | multicast_address, |
|
|
const boost::asio::ip::address & | interface_address, |
|
|
std::shared_ptr< boost::asio::io_context > | io_service ) |
|
inline |
205 {
208 }
std::string service_dn
Definition Bonjour.hpp:243
void create_request()
Definition Bonjour.hpp:233
Bonjour::TxtKeys txt_keys
Definition Bonjour.hpp:241
std::string service
Definition Bonjour.hpp:242
std::string protocol
Definition Bonjour.hpp:244
std::shared_ptr< boost::asio::io_context > io_service
Definition Bonjour.hpp:185
UdpSocket(Bonjour::ReplyFn replyfn, const boost::asio::ip::address &multicast_address, const boost::asio::ip::address &interface_address, std::shared_ptr< boost::asio::io_context > io_service)
Bonjour::ReplyFn replyfn
Definition Bonjour.hpp:181
boost::asio::ip::address multicast_address
Definition Bonjour.hpp:182
References Slic3r::UdpSocket::UdpSocket(), create_request(), Slic3r::UdpSocket::io_service, Slic3r::UdpSocket::multicast_address, protocol, Slic3r::UdpSocket::replyfn, service, service_dn, and txt_keys.
◆ LookupSocket() [2/2]
| Slic3r::LookupSocket::LookupSocket |
( |
Bonjour::TxtKeys | txt_keys, |
|
|
std::string | service, |
|
|
std::string | service_dn, |
|
|
std::string | protocol, |
|
|
Bonjour::ReplyFn | replyfn, |
|
|
const boost::asio::ip::address & | multicast_address, |
|
|
std::shared_ptr< boost::asio::io_context > | io_service ) |
|
inline |
◆ async_receive()
| void Slic3r::UdpSocket::async_receive |
( |
| ) |
|
|
inherited |
717{
718 try {
719
721 socket.async_receive_from(asio::buffer(session->buffer, session->buffer.size())
722 , session->remote_endpoint
724 }
725 catch (std::exception& e) {
726 BOOST_LOG_TRIVIAL(error) << e.what();
727 }
728}
void receive_handler(SharedSession session, const boost::system::error_code &error, size_t bytes)
Definition Bonjour.cpp:730
boost::asio::ip::udp::socket socket
Definition Bonjour.hpp:183
virtual SharedSession create_session() const =0
References create_session(), receive_handler(), and socket.
Referenced by receive_handler(), and send().
◆ cancel()
| void Slic3r::UdpSocket::cancel |
( |
| ) |
|
|
inlineinherited |
◆ create_request()
| void Slic3r::LookupSocket::create_request |
( |
| ) |
|
|
inlineprotected |
◆ create_session()
◆ get_service()
| const std::string Slic3r::LookupSocket::get_service |
( |
| ) |
const |
|
inline |
◆ get_service_dn()
| const std::string Slic3r::LookupSocket::get_service_dn |
( |
| ) |
const |
|
inline |
◆ get_txt_keys()
◆ receive_handler()
| void Slic3r::UdpSocket::receive_handler |
( |
SharedSession | session, |
|
|
const boost::system::error_code & | error, |
|
|
size_t | bytes ) |
|
protectedinherited |
◆ send()
| void Slic3r::UdpSocket::send |
( |
| ) |
|
|
inherited |
703{
704 try {
705 for (
const auto& request :
requests)
707
708
710 }
711 catch (std::exception& e) {
712 BOOST_LOG_TRIVIAL(error) << e.what();
713 }
714}
boost::asio::ip::udp::endpoint mcast_endpoint
Definition Bonjour.hpp:184
References async_receive(), mcast_endpoint, requests, and socket.
◆ io_service
| std::shared_ptr< boost::asio::io_context > Slic3r::UdpSocket::io_service |
|
protectedinherited |
◆ mcast_endpoint
| boost::asio::ip::udp::endpoint Slic3r::UdpSocket::mcast_endpoint |
|
protectedinherited |
◆ multicast_address
| boost::asio::ip::address Slic3r::UdpSocket::multicast_address |
|
protectedinherited |
◆ protocol
| std::string Slic3r::LookupSocket::protocol |
|
protected |
◆ replyfn
◆ request
◆ requests
◆ service
| std::string Slic3r::LookupSocket::service |
|
protected |
◆ service_dn
| std::string Slic3r::LookupSocket::service_dn |
|
protected |
◆ socket
| boost::asio::ip::udp::socket Slic3r::UdpSocket::socket |
|
protectedinherited |
◆ txt_keys
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/Bonjour.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/Bonjour.cpp