Show
Ignore:
Timestamp:
01/12/06 20:02:07 (3 years ago)
Author:
edmanm
Message:

Add support for the SIGNAL keyword;
Fix two potential segfaults.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/control/torcontrol.h

    r77 r78  
    3636   
    3737public: 
     38  /** Signals that can be sent by the controller */ 
     39  enum Signal { 
     40    Reload, 
     41    Shutdown, 
     42    Dump, 
     43    Debug, 
     44    Halt 
     45  }; 
     46   
    3847  /** Default constructor */ 
    3948  TorControl(); 
     
    6978  bool getInfo(QString key, QString &val, QString *errmsg = 0); 
    7079 
     80  /** Sends a signal to Tor */ 
     81  bool signal(Signal sig, QString *errmsg = 0); 
     82   
    7183  /** Ask Tor for its version */ 
    7284  QString getTorVersion(QString *errmsg = 0);