controlsocket.cpp File Reference

Socket used to connect to Tor's control interface. More...

#include <QHostAddress>
#include <util/string.h>
#include "controlsocket.h"

Go to the source code of this file.

Defines

#define CONN_TIMEOUT   5000
#define READ_TIMEOUT   250


Detailed Description

Socket used to connect to Tor's control interface.

Version:
Id

Definition in file controlsocket.cpp.


Define Documentation

#define CONN_TIMEOUT   5000

Give up after waiting five seconds for the control socket to connect to Tor. This timeout used to be shorter (three seconds), but some Agnitum OutPost users yelled at us wanting a longer timeout, for some reason.

Definition at line 36 of file controlsocket.cpp.

Referenced by ControlSocket::connect(), and ControlSocket::disconnect().

#define READ_TIMEOUT   250

Timeout reads in 250ms. We can set this to a short value because if there isn't any data to read, we want to return anyway.

Definition at line 40 of file controlsocket.cpp.

Referenced by ControlSocket::readLine().


Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0