On April 12, 2002 11:24 am, Martin Wilck wrote:
+/***********************************************************************
WS2_async_shutdown (INTERNAL)
- On overlapped sockets, shutdown() must be done asynchronously.
- */
+static void WS2_async_shutdown ( async_private *as ) +{
- ws2_async* wsa = (ws2_async*) as;
- int err = 1;
- TRACE ( "async %p %d\n", wsa, wsa->async.type );
- switch ( wsa->async.type )
- {
- case ASYNC_TYPE_READ:
err = shutdown ( wsa->async.fd, 0 );
break;
- case ASYNC_TYPE_WRITE:
err = shutdown ( wsa->async.fd, 1 );
break;
- default:
WARN ("invalid type: %d\n", wsa->async.type );
^^^^
This is an internal function, isn't this an ERR instead?