| 177 | } |
| 178 | |
| 179 | void CNetHandler::Reset() |
| 180 | { |
| 181 | this->Unlink(); |
| 182 | this->UnRegistSession(); |
| 183 | |
| 184 | if (_rsp_buff != NULL) { |
| 185 | delete_sk_buffer(_rsp_buff); |
| 186 | _rsp_buff = NULL; |
| 187 | } |
| 188 | |
| 189 | _thread = NULL; |
| 190 | _proto_type = NET_PROTO_TCP; |
| 191 | _conn_type = TYPE_CONN_SESSION; |
| 192 | _dest_ipv4.sin_addr.s_addr = 0; |
| 193 | _dest_ipv4.sin_port = 0; |
| 194 | _session_id = 0; |
| 195 | _callback = NULL; |
| 196 | _err_no = 0; |
| 197 | _state_flags = 0; |
| 198 | _conn_ptr = NULL; |
| 199 | _send_pos = 0; |
| 200 | _req_len = 0; |
| 201 | _req_data = NULL; |
| 202 | |
| 203 | } |
| 204 | |
| 205 | CNetHandler::CNetHandler() |
| 206 | { |
no test coverage detected