Lines Matching refs:overlapped

144 …LLBACK		TCPEndRecv( DWORD error, DWORD bytesTransferred, LPWSAOVERLAPPED overlapped, DWORD flags );
148 mDNSlocal void CALLBACK UDPEndRecv( DWORD err, DWORD bytesTransferred, LPWSAOVERLAPPED overlapped,…
337 inMDNS->p->unicastSock4.overlapped.pending = FALSE; in mDNSPlatformInit()
369 inMDNS->p->unicastSock6.overlapped.pending = FALSE; in mDNSPlatformInit()
1189 if ( !sock->overlapped.pending && ( sock->bptr == sock->eptr ) ) in mDNSPlatformReadTCP()
1344 check( !sock->overlapped.pending ); in TCPBeginRecv()
1346 ZeroMemory( &sock->overlapped.data, sizeof( sock->overlapped.data ) ); in TCPBeginRecv()
1347 sock->overlapped.data.hEvent = sock; in TCPBeginRecv()
1349 sock->overlapped.wbuf.buf = ( char* ) sock->eptr; in TCPBeginRecv()
1350 sock->overlapped.wbuf.len = ( ULONG) ( sock->ebuf - sock->eptr ); in TCPBeginRecv()
1352 …err = WSARecv( sock->fd, &sock->overlapped.wbuf, 1, &bytesReceived, &flags, &sock->overlapped.data… in TCPBeginRecv()
1356 sock->overlapped.pending = TRUE; in TCPBeginRecv()
1368 mDNSlocal void CALLBACK TCPEndRecv( DWORD error, DWORD bytesTransferred, LPWSAOVERLAPPED overlapped in TCPEndRecv() argument
1375 sock = ( overlapped != NULL ) ? overlapped->hEvent : NULL; in TCPEndRecv()
1378 sock->overlapped.error = error; in TCPEndRecv()
1379 sock->overlapped.bytesTransferred = bytesTransferred; in TCPEndRecv()
1380 check( sock->overlapped.pending ); in TCPEndRecv()
1381 sock->overlapped.pending = FALSE; in TCPEndRecv()
1417 sock->overlapped.pending = FALSE; in mDNSPlatformUDPSocket()
2747 ifd->sock.overlapped.pending = FALSE; in SetupInterface()
3179 check( !sock->overlapped.pending ); in UDPBeginRecv()
3183 sock->overlapped.wbuf.buf = (char *) &sock->packet; in UDPBeginRecv()
3184 sock->overlapped.wbuf.len = (u_long) sizeof( sock->packet ); in UDPBeginRecv()
3189 ZeroMemory( &sock->overlapped.data, sizeof( OVERLAPPED ) ); in UDPBeginRecv()
3190 sock->overlapped.data.hEvent = sock; in UDPBeginRecv()
3200 sock->wmsg.lpBuffers = &sock->overlapped.wbuf; in UDPBeginRecv()
3206 …err = sock->recvMsgPtr( sock->fd, &sock->wmsg, &size, &sock->overlapped.data, ( LPWSAOVERLAPPED_CO… in UDPBeginRecv()
3222 …ecvFrom( sock->fd, &sock->overlapped.wbuf, 1, NULL, &flags, ( LPSOCKADDR ) &sock->srcAddr, &sock->… in UDPBeginRecv()
3239 sock->overlapped.pending = TRUE; in UDPBeginRecv()
3256 mDNSlocal void CALLBACK UDPEndRecv( DWORD err, DWORD bytesTransferred, LPWSAOVERLAPPED overlapped, … in UDPEndRecv() argument
3265 sock = ( overlapped != NULL ) ? overlapped->hEvent : NULL; in UDPEndRecv()
3268 sock->overlapped.error = err; in UDPEndRecv()
3269 sock->overlapped.bytesTransferred = bytesTransferred; in UDPEndRecv()
3270 check( sock->overlapped.pending ); in UDPEndRecv()
3271 sock->overlapped.pending = FALSE; in UDPEndRecv()
3275 …ddrToMDNSAddr( (struct sockaddr *) &sock->srcAddr, &sock->overlapped.srcAddr, &sock->overlapped.sr… in UDPEndRecv()
3281 sock->overlapped.dstAddr = sock->addr; in UDPEndRecv()
3282 sock->overlapped.dstPort = sock->port; in UDPEndRecv()
3320 sock->overlapped.dstAddr.type = mDNSAddrType_IPv4; in UDPEndRecv()
3321 sock->overlapped.dstAddr.ip.v4.NotAnInteger = ipv4PacketInfo->ipi_addr.s_addr; in UDPEndRecv()
3334 sock->overlapped.dstAddr.type = mDNSAddrType_IPv6; in UDPEndRecv()
3335 sock->overlapped.dstAddr.ip.v6 = *( (mDNSv6Addr *) &ipv6PacketInfo->ipi6_addr ); in UDPEndRecv()
3355 …lChatty, DEBUG_NAME " src = %#a:%u\n", &sock->overlapped.srcAddr, ntohs( sock->overlapped in UDPEndRecv()
3356 …lChatty, DEBUG_NAME " dst = %#a:%u\n", &sock->overlapped.dstAddr, ntohs( sock->overlapped in UDPEndRecv()
5128 … __ROUTINE__, udpSock->fd, udpSock->overlapped.error, udpSock->overlapped.bytesTransferred ); in DispatchSocketEvents()
5136 … __ROUTINE__, tcpSock->fd, tcpSock->overlapped.error, tcpSock->overlapped.bytesTransferred ); in DispatchSocketEvents()
5155 mDNSu8 * end = ( (mDNSu8 *) &sock->packet ) + sock->overlapped.bytesTransferred; in DispatchUDPEvent()
5158 …->m, &sock->packet, end, &sock->overlapped.srcAddr, sock->overlapped.srcPort, &sock->overlapped.ds… in DispatchUDPEvent()
5178 sock->eptr += sock->overlapped.bytesTransferred; in DispatchTCPEvent()
5179 sock->lastError = sock->overlapped.error; in DispatchTCPEvent()
5181 if ( !sock->overlapped.error && !sock->overlapped.bytesTransferred ) in DispatchTCPEvent()