… | |
… | |
54 | * client. |
54 | * client. |
55 | */ |
55 | */ |
56 | client::client (int fd, const char *peername) |
56 | client::client (int fd, const char *peername) |
57 | : fd (fd), host (strdup (peername)), |
57 | : fd (fd), host (strdup (peername)), |
58 | socket_ev (this, &client::socket_cb), |
58 | socket_ev (this, &client::socket_cb), |
59 | cmd_ev (this, &client::cmd_cb) |
59 | cmd_ev (this, &client::cmd_cb), |
|
|
60 | cc_inv (this), cc_other (this) |
60 | { |
61 | { |
61 | { |
62 | { |
62 | struct linger linger_opt; |
63 | struct linger linger_opt; |
63 | |
64 | |
64 | linger_opt.l_onoff = 0; |
65 | linger_opt.l_onoff = 0; |
… | |
… | |
162 | pl->socket = 0; |
163 | pl->socket = 0; |
163 | |
164 | |
164 | if (fd >= 0) |
165 | if (fd >= 0) |
165 | close (fd); |
166 | close (fd); |
166 | |
167 | |
167 | free (faces_sent); |
168 | sfree<uint8> (faces_sent, nrofpixmaps); |
168 | free (stats.range); |
169 | free (stats.range); |
169 | free (stats.title); |
170 | free (stats.title); |
170 | free (host); |
171 | free (host); |
171 | } |
172 | } |
172 | |
173 | |