| CSpoofSocket:: AssignSocket() |

Protected Function | Declared in: SpoofSocket.h

## Declaration

    void AssignSocket(
        SOCKET sok,
        unsigned char ucProtocol=IPPROTO_TCP);

## Description

Attach to a socket

## Function Body

    try
    {
        //Sets the protocol
        m_Protocol=ucProtocol;

        //Binds to a socket
        m_SpoofSocket=sok;

        //Set non raw
        SetRaw(FALSE);
    }
    ERROR_HANDLER("AssignSocket")

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