Connection: Add negotiation phase

This commit is contained in:
Petr Baudis 2011-11-27 05:06:46 +01:00
parent 85e143fd11
commit 9cf99e0bcd
3 changed files with 12 additions and 3 deletions

View file

@ -13,10 +13,11 @@ class agent;
class connection {
public:
int fd;
bool negotiation;
bool error;
connection(int fd_)
: fd(fd_), error(false)
: fd(fd_), negotiation(true), error(false)
{
spawn_thread();
}