| CSniffSocket:: Sniff() |

Public Function | Declared in: SniffSocket.h

## Declaration

    virtual BOOL Sniff(
        BOOL bSniff);

## Description

Turn to be a sniffer socket

## Function Body

    try
    {
        if (CSpoofSocket::Sniff(bSniff))
            return !WSAAsyncSelect(GetHandle(),GetWindowHandle(),WM_SOCKET_GENERAL,FD_READ);
        else
            return FALSE;
    }
    ERROR_HANDLER_AMBIG_RETURN(CSpoofSocket,"Sniff",FALSE)

## See Also

Class Overview | CSpoofSocket | CAsyncSocket | 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.