| 74 | } |
| 75 | |
| 76 | void |
| 77 | hstcpcli::close() |
| 78 | { |
| 79 | fd.close(); |
| 80 | readbuf.clear(); |
| 81 | writebuf.clear(); |
| 82 | flds.clear(); |
| 83 | response_end_offset = 0; |
| 84 | cur_row_offset = 0; |
| 85 | num_flds = 0; |
| 86 | num_req_bufd = 0; |
| 87 | num_req_sent = 0; |
| 88 | num_req_rcvd = 0; |
| 89 | } |
| 90 | |
| 91 | int |
| 92 | hstcpcli::reconnect() |