Changeset 535 for trunk/src/ocat.h


Ignore:
Timestamp:
12/27/09 20:37:46 (2 years ago)
Author:
eagle
Message:
  • option -t did not work correctly
  • (optional) pid file is removed at exit
  • SIGUSR1 is handled in preparation for statistics output
  • controller sessions limited to MAX_DEF_CTRL_SESS (= 5 by default)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ocat.h

    r534 r535  
    200200//! RECONN_ATTEMPTS must not be faster than MIN_RECONNECT_TIME 
    201201#define MIN_RECONNECT_TIME 30 
     202//! define default maximum number of concurrent controller sessions 
     203#define MAX_DEF_CTRL_SESS 5 
    202204 
    203205#define MFD_SET(f,s,m) {FD_SET(f, s); m = f > m ? f : m;} 
     
    213215#define VERSION_STRING_LEN 256 
    214216 
     217#define MAX_DEF_CTRL 6 
    215218 
    216219#define NTYPE_TOR 0 
     
    292295   int socksfd[2]; 
    293296   int net_type; 
     297   int max_ctrl, ctrl_active; 
     298   //! pipe filedescriptors for pid deletion process 
     299   int pid_fd[2]; 
     300   int sig_usr1, clear_stats; 
    294301}; 
    295302 
Note: See TracChangeset for help on using the changeset viewer.