| CAsyncSocket:: Initialize() |

Public Function | Declared in: AsyncSocket.h

## Declaration

    static void Initialize();

## Description

Initialize all the handlers

## Function Body

    try
    {
        //Initialize all data
        if (!m_Initialized && CSpoofBase::IsInitialized())
        {
            //Create handlers
            if (!SetHandlers())
                ReportStaticError(CAsyncSocket_Class,"CAsyncSocket","Failed to init handlers!");

            //Create a new socket to do the shutdown
            CAsyncShutdown* pShutdown;
            pShutdown=new CAsyncShutdown;

            //The class registers itself
            m_Initialized=TRUE;
        }
    }
    ERROR_HANDLER_STATIC(CAsyncSocket_Class,"Initialize")

## 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.