// // Created by Johnathon Slightham on 2025-10-22. // #include #include "CommunicationFactory.h" #include "constants/tcp.h" #include "constants/udp.h" #include "wireless/mDNSDiscoveryService.h" #include "wireless/TCPServer.h" #include "wireless/UDPServer.h" #include "wireless/WifiManager.h" std::unique_ptr CommunicationFactory::create_connection_manager(const CommunicationMethod type) { switch (type) { case Wireless: return std::make_unique(); default: return nullptr; } } std::unique_ptr CommunicationFactory::create_discovery_service(const CommunicationMethod type) { switch (type) { case Wireless: return std::make_unique(); default: return nullptr; } } std::unique_ptr CommunicationFactory::create_lossy_server(const CommunicationMethod type, const std::shared_ptr>>& rx_queue) { switch (type) { case Wireless: return std::make_unique(RECV_PORT, SEND_PORT, rx_queue); default: return nullptr; } } std::unique_ptr CommunicationFactory::create_lossless_server(const CommunicationMethod type, const std::shared_ptr>>& rx_queue) { switch (type) { case Wireless: return std::make_unique(TCP_PORT, rx_queue); default: return nullptr; } }