Ejemplo n.º 1
0
/*
 * Check to see if we have a pending connection from the debugger.
 *
 * Returns true on success (meaning a connection is available).
 */
static bool checkConnection(JdwpState* state)
{
    JdwpNetState* netState = state->netState;

    assert(netState->listenSock >= 0);
    /* not expecting to be called when debugger is actively connected */
    assert(netState->clientSock < 0);

    if (!isFdReadable(netState->listenSock))
        return false;
    return true;
}
Ejemplo n.º 2
0
/*####################################
	函数功能: 	多线程的执行程序
	入参:		void *arg
######################################*/
void* threadHandler(void *arg)
{
	/* 数据解析处理 */
	isFdReadable();
	return ((void *)0);
}