winsock question regarding odbc connections


  • I have a general question on how winsock works when used as  means to connect to DB through odbc.

    Every time i wait for a results to a large query i see winsock waiting until notified that the results are back:

    ChildEBP RetAddr  Args to Child             
    00128700 7c827d0b 71b21af5 0000034c 00000001 ntdll!KiFastSystemCallRet
    00128704 71b21af5 0000034c 00000001 0012872c ntdll!NtWaitForSingleObject+0xc
    00128740 71b2c507 0000034c 00000410 00000000 mswsock!SockWaitForSingleObject+0x19d
    001287b8 71c094e5 00000410 00128818 00000001 mswsock!WSPRecv+0x203
    001287f4 62983a4b 00000410 00128818 00000001 ws2_32!WSARecv+0x77

    The stack is always the same regardless of language used to develop the app as long as i use odbc. Does anyone know which layer suppose to notify mswsock!SockWaitForSingleObject that requested data arrived? is it the network card drivers? Any info on SockWaitForSingleObject, i tried googling but could not find much useful info.

    If this is not the right forum can you please suggest which one should i use instead.


    Tuesday, August 24, 2010 3:48 PM

All replies

  • Hello there,


    A link is given below

    Winsock Kernel (WSK)


    Hope this helps.



    Phijo Mathew Philip.

    Thursday, September 23, 2010 8:31 AM