~jackweirdy/vidalia/680192

« back to all changes in this revision

Viewing changes to src/vidalia/config/UPNPControlThread.h

  • Committer: Package Import Robot
  • Author(s): Ulises Vitulli, intrigeri, Ulises Vitulli
  • Date: 2012-06-22 07:18:44 UTC
  • mfrom: (1.4.8) (8.2.13 sid)
  • Revision ID: package-import@ubuntu.com-20120622071844-s278v0p646pqt949
Tags: 0.2.19-1
[ intrigeri ]
* Imported Upstream version 0.2.19
* Install AppArmor profile.
* Enable hardening flags.

[ Ulises Vitulli ]
* Added runtime dependency on apparmor.
* Updated d/NEWS and d/README.Debian to reflect new features.
* Move dirs from d/rules to d/vidalia.dir.
* Updated Standard-version to 3.9.3 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
**  This file is part of Vidalia, and is subject to the license terms in the
3
 
**  LICENSE file, found in the top level directory of this distribution. If 
 
3
**  LICENSE file, found in the top level directory of this distribution. If
4
4
**  you did not receive the LICENSE file with this file, you may obtain it
5
5
**  from the Vidalia source package distributed by the Vidalia Project at
6
 
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia, 
7
 
**  including this file, may be copied, modified, propagated, or distributed 
 
6
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
 
7
**  including this file, may be copied, modified, propagated, or distributed
8
8
**  except according to the terms described in the LICENSE file.
9
9
*/
10
10
 
11
 
/* 
 
11
/*
12
12
** \file UPNPControlThread.h
13
13
** \brief Thread for configuring UPnP in the background
14
14
*/
64
64
  /** Discovers UPnP-enabled IGDs on the network.  This method will block for
65
65
   * UPNPCONTROL_DISCOVER_TIMEOUT milliseconds. */
66
66
  UPNPControl::UPNPError initializeUPNP();
67
 
  /** Updates the port mapping for <b>oldPort</b>, changing it to 
 
67
  /** Updates the port mapping for <b>oldPort</b>, changing it to
68
68
   * <b>newPort</b>. */
69
69
  UPNPControl::UPNPError updatePort(quint16 oldPort, quint16 newPort);
70
70
  /** Adds a port forwarding mapping from external:<b>port</b> to
73
73
  /** Removes the port mapping for <b>port</b>. Returns 0 on success or
74
74
   * non-zero on failure. */
75
75
  UPNPControl::UPNPError disablePort(quint16 port);
76
 
  
 
76
 
77
77
  QTime _upnpInitialized; /**< Time at which the UPnP state was last set. */
78
78
  bool _keepRunning; /**< True if the control thread should keep running. */
79
79
  UPNPControl *_control; /**< Stores desired UPnP state. */
87
87
  struct IGDdatas data;
88
88
  char lanaddr[16];
89
89
};
90
 
#endif 
 
90
#endif
91
91