| CSpoofSocket:: CSpoofSocket() |

Protected Constructor | Declared in: SpoofSocket.h

## Declaration

    CSpoofSocket(
        SOCKET sok);

## Description

Attach to a socket by constructor

## Initializer Override(s)

CSpoofBase()

## Function Body

    //Check it's a valid socket
    if (sok!=INVALID_SOCKET)
        ReportError("CSpoofSocket","Received invalid socket!");
    else
        try
        {
            SetName(CSpoofSocket_LOGNAME);

            //Initialize the data
            InitializeIP();

            //Save the handle
            AssignSocket(sok);
        }
        ERROR_HANDLER("CSpoofSocket")

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