diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-10-20 11:18:56 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-09 17:30:49 +0200 |
commit | 49f5e5973c5be6ba23f1dbe9c4ef5ab08017e962 (patch) | |
tree | eee0f14f61e2c7209576570de63e1927461b516c /client/tunnel_channel.cpp | |
parent | 8d5b738ba169c44d223ab6d99ec12e763ce5bc8e (diff) | |
download | spice-49f5e5973c5be6ba23f1dbe9c4ef5ab08017e962.tar.gz spice-49f5e5973c5be6ba23f1dbe9c4ef5ab08017e962.tar.xz spice-49f5e5973c5be6ba23f1dbe9c4ef5ab08017e962.zip |
spice client: Transfer all channels run loop from EventsLoop class to ProcessLoop class
Diffstat (limited to 'client/tunnel_channel.cpp')
-rw-r--r-- | client/tunnel_channel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |