Searched refs:newSock (Results 1 – 2 of 2) sorted by relevance
519 deSocket* newSock = DE_NULL; in deSocket_accept() local538 newSock = (deSocket*)deCalloc(sizeof(deSocket)); in deSocket_accept()539 if (!newSock) in deSocket_accept()549 newSock->stateLock = deMutex_create(0); in deSocket_accept()550 newSock->handle = newFd; in deSocket_accept()551 newSock->state = DE_SOCKETSTATE_CONNECTED; in deSocket_accept()552 newSock->openChannels = DE_SOCKETCHANNEL_BOTH; in deSocket_accept()557 return newSock; in deSocket_accept()
2812 int newSock; in AcceptTCPConnection() local2819 newSock = accept( sd, ( struct sockaddr* ) &context->cliaddr, &clilen ); in AcceptTCPConnection()2820 …require_action( newSock != -1, exit, err = mStatus_UnknownErr; LogErr( "AcceptTCPConnection", "acc… in AcceptTCPConnection()2822 context->sock = mDNSPlatformTCPAccept( flags, newSock ); in AcceptTCPConnection()