From 49f5e5973c5be6ba23f1dbe9c4ef5ab08017e962 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Tue, 20 Oct 2009 11:18:56 +0200 Subject: spice client: Transfer all channels run loop from EventsLoop class to ProcessLoop class --- client/tunnel_channel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/tunnel_channel.cpp') diff --git a/client/tunnel_channel.cpp b/client/tunnel_channel.cpp index 5da18f56..08556c67 100644 --- a/client/tunnel_channel.cpp +++ b/client/tunnel_channel.cpp @@ -185,7 +185,7 @@ struct TunnelService { class TunnelChannel::TunnelSocket: public ClientNetSocket { public: - TunnelSocket(uint16_t id, TunnelService & dst_service, EventsLoop & events_loop, + TunnelSocket(uint16_t id, TunnelService& dst_service, ProcessLoop& process_loop, EventHandler & event_handler); virtual ~TunnelSocket() {} @@ -208,10 +208,10 @@ private: }; TunnelChannel::TunnelSocket::TunnelSocket(uint16_t id, TunnelService& dst_service, - EventsLoop& events_loop, + ProcessLoop& process_loop, ClientNetSocket::EventHandler& event_handler) : ClientNetSocket(id, dst_service.ip, htons((uint16_t)dst_service.port), - events_loop, event_handler) + process_loop, event_handler) , _num_tokens (0) , _server_num_tokens (0) , _service_id (dst_service.id) @@ -356,7 +356,7 @@ void TunnelChannel::handle_socket_open(RedPeer::InMessage* message) open_msg->service_id); } - sckt = new TunnelSocket(open_msg->connection_id, *service, get_events_loop(), *this); + sckt = new TunnelSocket(open_msg->connection_id, *service, get_process_loop(), *this); if (sckt->connect(open_msg->tokens)) { _sockets[open_msg->connection_id] = sckt; -- cgit