Lines Matching defs:handle
114 void NetServer::OnServerClose(uv_handle_t* handle)
116 if (handle == nullptr) {
117 HILOG_ERROR("handle is null");
121 NetServer* that = static_cast<NetServer*>(handle->data);
153 void NetServer::TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf, NetServer* that)
165 uv_shutdown(sreq, handle, AfterShutdown);
176 uv_close((uv_handle_t*)handle, OnClose);
196 if (uv_write(&wr->req, handle, &wr->buf, 1, AfterWrite) != 0) {
201 void NetServer::AfterRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf)
203 if (handle == nullptr) {
204 HILOG_ERROR("handle is null");
213 NetServer* that = static_cast<NetServer*>(handle->data);
219 TakeDiffactionsByStatus(handle, nread, buf, that);
229 uv_close((uv_handle_t*)req->handle, OnClose);
233 void NetServer::EchoAlloc(uv_handle_t* handle, size_t suggestedSize, uv_buf_t* buf)
235 if (handle == nullptr) {
236 HILOG_ERROR("handle is null");