Lines Matching refs:ctxJdwp
129 HCtxJdwp ctxJdwp = static_cast<HCtxJdwp>(pipe->data); in ReadStream() local
130 HdcJdwp *thisClass = static_cast<HdcJdwp *>(ctxJdwp->thisClass); in ReadStream()
133 char *p = ctxJdwp->buf; in ReadStream()
143 ctxJdwp->pkgName = pkgName; in ReadStream()
144 ctxJdwp->isDebug = jsMsg->isDebug; in ReadStream()
152 ctxJdwp->pid = pid; in ReadStream()
155 pid, ctxJdwp->pkgName.c_str(), ctxJdwp->isDebug); in ReadStream()
159 thisClass->AdminContext(OP_ADD, pid, ctxJdwp); in ReadStream()
162 if (uv_fileno(reinterpret_cast<uv_handle_t *>(&(ctxJdwp->pipe)), &fd) < 0) { in ReadStream()
172 Base::ZeroArray(ctxJdwp->buf); in ReadStream()
174 WRITE_LOG(LOG_INFO, "ReadStream proc:%d err, free it.", ctxJdwp->pid); in ReadStream()
176 thisClass->FreeContext(ctxJdwp); in ReadStream()
212 HCtxJdwp ctxJdwp = (HCtxJdwp)thisClass->MallocContext(); in AcceptClient() local
213 if (!ctxJdwp) { in AcceptClient()
216 uv_pipe_init(thisClass->loop, &ctxJdwp->pipe, 1); in AcceptClient()
217 if (uv_accept(server, (uv_stream_t *)&ctxJdwp->pipe) < 0) { in AcceptClient()
220 thisClass->FreeContext(ctxJdwp); in AcceptClient()
225 HCtxJdwp ctxJdwp = (HCtxJdwp)handle->data; in AcceptClient() local
226 buf->base = (char *)ctxJdwp->buf; in AcceptClient()
227 buf->len = sizeof(ctxJdwp->buf); in AcceptClient()
229 uv_read_start((uv_stream_t *)&ctxJdwp->pipe, funAlloc, ReadStream); in AcceptClient()
311 void *HdcJdwp::AdminContext(const uint8_t op, const uint32_t pid, HCtxJdwp ctxJdwp) in AdminContext() argument
319 mapCtxJdwp[pid] = ctxJdwp; in AdminContext()