| 5782 | } |
| 5783 | |
| 5784 | int |
| 5785 | TSVConnClosedGet(TSVConn connp) |
| 5786 | { |
| 5787 | sdk_assert(sdk_sanity_check_iocore_structure(connp) == TS_SUCCESS); |
| 5788 | |
| 5789 | VConnection *vc = reinterpret_cast<VConnection *>(connp); |
| 5790 | int data = 0; |
| 5791 | bool f = vc->get_data(TS_API_DATA_CLOSED, &data); |
| 5792 | ink_assert(f); // This can fail in some cases, we need to track those down. |
| 5793 | return data; |
| 5794 | } |
| 5795 | |
| 5796 | TSVIO |
| 5797 | TSVConnRead(TSVConn connp, TSCont contp, TSIOBuffer bufp, int64_t nbytes) |