| CAsyncSocket:: DisableAsync() |

Public Function | Declared in: AsyncSocket.h

## Declaration

    BOOL DisableAsync();

## Description

Disable the async notification

## Function Body

    try
    {
        //Quit if not ok
        if (!CheckAsyncSocketValid())
            return FALSE;

        //Set event to read / write / close / oob
        int iResult;

        iResult=WSAAsyncSelect(GetAsyncHandle(),GetWindowHandle(),0,0);
        if (iResult)
        {
            SetLastError("DisableAsync");
            return FALSE;
        }

        return TRUE;
    }
    ERROR_HANDLER_RETURN("DisableAsync",FALSE)

## See Also

Class Overview | CSpoofBase | Hierarchy Chart

This web site was generated using Surveyor V4.50.811.1. Click here for more information. | Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.