Internet Direct (Indy)
Home
PreviousUpNext
TIdStackLinux.WSSocket Method

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

Pascal
function WSSocket(
    AFamily: Integer; 
    AStruct: Integer; 
    AProtocol: Integer; 
    const AOverlapped: Boolean = False
): TIdStackSocketHandle; override;
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.

TIdStackBSDBase.NewSocketHandle

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.