Searched refs:newSock (Results 1 – 2 of 2) sorted by relevance
545 deSocket* newSock = DE_NULL; in deSocket_accept() local556 newSock = (deSocket*)deCalloc(sizeof(deSocket)); in deSocket_accept()557 if (!newSock) in deSocket_accept()567 newSock->stateLock = deMutex_create(0); in deSocket_accept()568 newSock->handle = newFd; in deSocket_accept()569 newSock->state = DE_SOCKETSTATE_CONNECTED; in deSocket_accept()570 newSock->openChannels = DE_SOCKETCHANNEL_BOTH; in deSocket_accept()575 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()