Lines Matching defs:handle
113 void NetServer::OnServerClose(uv_handle_t* handle)
115 if (handle == nullptr) {
116 HILOG_ERROR("handle is null");
120 NetServer* that = (NetServer*)handle->data;
152 void NetServer::TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf, NetServer* that)
164 uv_shutdown(sreq, handle, AfterShutdown);
175 uv_close((uv_handle_t*)handle, OnClose);
195 if (uv_write(&wr->req, handle, &wr->buf, 1, AfterWrite) != 0) {
200 void NetServer::AfterRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf)
202 if (handle == nullptr) {
203 HILOG_ERROR("handle is null");
212 NetServer* that = (NetServer*)handle->data;
218 TakeDiffactionsByStatus(handle, nread, buf, that);
228 uv_close((uv_handle_t*)req->handle, OnClose);
232 void NetServer::EchoAlloc(uv_handle_t* handle, size_t suggestedSize, uv_buf_t* buf)
234 if (handle == nullptr) {
235 HILOG_ERROR("handle is null");