Add a level of inheritance above SocketHandler
SocketHandler has been renamed to TCPSocketHandler SocketHandler is now a simple interface with a few methods, used only by Poller. This way we can inherite from the new SocketHandler class, to handle other types of sockets, and still make them manageable by the poller without any change in the Poller class.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# define XMPP_COMPONENT_INCLUDED
|
||||
|
||||
#include <xmpp/adhoc_commands_handler.hpp>
|
||||
#include <network/socket_handler.hpp>
|
||||
#include <network/tcp_socket_handler.hpp>
|
||||
#include <xmpp/xmpp_parser.hpp>
|
||||
#include <bridge/bridge.hpp>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
*
|
||||
* TODO: implement XEP-0225: Component Connections
|
||||
*/
|
||||
class XmppComponent: public SocketHandler
|
||||
class XmppComponent: public TCPSocketHandler
|
||||
{
|
||||
public:
|
||||
explicit XmppComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret);
|
||||
|
||||
Reference in New Issue
Block a user