TWinsock2UDPListener

From Ultibo.org
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2UDPListener = class(TWinsock2UDPSocket)

public
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
 
FActive:Boolean;  
FUseListener:Boolean;  
FThreads:TWinsock2UDPServerThreads;  
FBuffers:TWinsock2UDPServerBuffers;  
FListenerThread:TWinsock2UDPListenerThread;  
 
FOnExecute:TUDPExecuteEvent;  
FOnCreateThread:TUDPCreateThreadEvent;  
FOnCreateBuffer:TUDPCreateBufferEvent;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
procedure SetActive(AActive:Boolean);  
procedure SetUseListener(AUseListener:Boolean);  
protected
procedure SetLastError(ALastError:LongInt); virtual;  
 
function DoExecute(AThread:TWinsock2UDPServerThread):Boolean; virtual;  
 
function SendToSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt; override;  
public
property Active:Boolean read FActive write SetActive;  
property UseListener:Boolean read FUseListener write SetUseListener;  
property Threads:TWinsock2UDPServerThreads read FThreads;  
property Buffers:TWinsock2UDPServerBuffers read FBuffers;  
 
property OnExecute:TUDPExecuteEvent read FOnExecute write FOnExecute;  
property OnCreateThread:TUDPCreateThreadEvent read FOnCreateThread write FOnCreateThread;  
property OnCreateBuffer:TUDPCreateBufferEvent read FOnCreateBuffer write FOnCreateBuffer;  


Function declarations



constructor TWinsock2UDPListener.Create;
Description: To be documented
Note None documented


destructor TWinsock2UDPListener.Destroy;
Description: To be documented
Note None documented


function TWinsock2UDPListener.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TWinsock2UDPListener.ReleaseLock:Boolean;
Description: To be documented
Note None documented


procedure TWinsock2UDPListener.SetActive(AActive:Boolean);
Description: To be documented
Note None documented


procedure TWinsock2UDPListener.SetUseListener(AUseListener:Boolean);
Description: To be documented
Note None documented


procedure TWinsock2UDPListener.SetLastError(ALastError:LongInt);
Description: To be documented
Note None documented


function TWinsock2UDPListener.DoExecute(AThread:TWinsock2UDPServerThread):Boolean;
Description: To be documented
Note None documented


function TWinsock2UDPListener.SendToSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note None documented


Return to Unit Reference