~alecu/ubuntuone-client/proxy-tunnel-useit

« back to all changes in this revision

Viewing changes to bin/ubuntuone-proxy-tunnel

  • Committer: Alejandro J. Cura
  • Date: 2012-03-02 21:29:07 UTC
  • Revision ID: alecu@canonical.com-20120302212907-7wbcvqmcvl92lfx0
Shaping up the proxy tunnel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
#
 
3
# Copyright 2012 Canonical Ltd.
 
4
#
 
5
# This program is free software: you can redistribute it and/or modify it
 
6
# under the terms of the GNU General Public License version 3, as published
 
7
# by the Free Software Foundation.
 
8
#
 
9
# This program is distributed in the hope that it will be useful, but
 
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
 
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
12
# PURPOSE.  See the GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License along
 
15
# with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 
 
17
"""Ubuntu One tunnel for proxy support."""
 
18
 
1
19
import sys
2
20
 
3
 
from PyQt4.QtCore import QCoreApplication
4
 
 
5
 
from ubuntuone.proxy.tunnel_server import TunnelServer
6
 
 
7
 
 
8
 
def main():
9
 
    """One tunnel server in the whole of the Application."""
10
 
    app = QCoreApplication(sys.argv)
11
 
    tunnel_server = TunnelServer()
12
 
    app.exec_()
13
 
 
 
21
from ubuntuone.proxy.tunnel_server import main
14
22
 
15
23
if __name__ == "__main__":
16
 
    main()
 
24
    main(sys.argv)