#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 |
Definition in file controlsocket.cpp.
#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().