~ubuntu-branches/ubuntu/vivid/gloox/vivid-proposed

« back to all changes in this revision

Viewing changes to src/socks5bytestream.cpp

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-03-16 17:34:43 UTC
  • mfrom: (12.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140316173443-4s177dovzaz5dm8o
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright (c) 2006-2009 by Jakob Schroeter <js@camaya.net>
 
2
  Copyright (c) 2006-2013 by Jakob Schroeter <js@camaya.net>
3
3
  This file is part of the gloox library. http://camaya.net/gloox
4
4
 
5
5
  This software is distributed under a license. The full license
144
144
  void SOCKS5Bytestream::handleConnect( const ConnectionBase* /*connection*/ )
145
145
  {
146
146
    m_manager->acknowledgeStreamHost( true, m_proxy, m_sid );
 
147
 
 
148
    if( !m_open )
 
149
    {
 
150
      m_open = true;
 
151
      m_handler->handleBytestreamOpen( this );
 
152
    }
147
153
  }
148
154
 
149
155
  void SOCKS5Bytestream::handleDisconnect( const ConnectionBase* /*connection*/, ConnectionError /*reason*/ )
150
156
  {
151
 
    if( m_handler && m_connected )
152
 
      m_handler->handleBytestreamClose( this );
 
157
    close();
153
158
  }
154
159
 
155
160
}