Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to call <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx" rel="nofollow"><code>WSAStartup</code></a> function to initiate use of the Winsock DLL by a process.</p> <p>Also, call <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms741549%28v=vs.85%29.aspx" rel="nofollow"><code>WSACleanUp</code></a> function at the end.</p> <p>From the link <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx" rel="nofollow">WSAStartup</a>:</p> <p><em>The <strong><code>WSAStartup</code></strong> function <strong>must be the first Windows Sockets function called</strong> by an application or DLL. It allows an application or DLL to specify the version of Windows Sockets required and retrieve details of the specific Windows Sockets implementation. The application or DLL can only issue further Windows Sockets functions after successfully calling <code>WSAStartup</code>.</em></p> <p>A good example is also given in the above link.</p> <p>Also:</p> <p><em><strong>An application must call the <code>WSACleanup</code> function</strong> for every successful time the <code>WSAStartup</code> function is called. This means, for example, that if an application calls <code>WSAStartup</code> three times, it must call <code>WSACleanup</code> three times. The first two calls to <code>WSACleanup</code> do nothing except decrement an internal counter; the final <code>WSACleanup</code> call for the task does all necessary resource deallocation for the task.</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload