Topic Path: Symbol Reference > Classes > TIdStackBSDBase Class > TIdStackBSDBase Methods > WSSocket Method
ContentsIndexHome
PreviousUpNext
TIdStackBSDBase.WSSocket Method

Allocates a socket handle for the specified protocol, family, structure, and IO mode.

function WSSocket(
    AFamily: Integer; 
    AStruct: Integer; 
    AProtocol: Integer; 
    const AOverlapped: Boolean = False
): TIdStackSocketHandle; virtual; abstract;
Parameters 
Description 
AFamily 
 
AStruct 
 
AProtocol 
 
AOverlapped 
 

TIdStackSocketHandle - Socket handle allocated by the socket implementation.

WSSocket is an abstract virtual TIdStackSocketHandle function that allows the protocol stack instance to allocate a socket handle having the specified protocol, family, structure, and IO mode. 

WSSocket must be implemented in a descendant class that provides access to the socket implementation for the platform or Operating Sytem for the Indy library. 

Use the NewSocketHandle method to allocate a socket handle and check for socket errors.

Missing parameter docs.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.