TWinsock2UDPSocket
From Ultibo.org
Return to Unit Winsock2
Description
To be documented
Class definitions
TWinsock2UDPSocket = class(TWinsock2Socket)
Note: Datagram Socket (SOCK_DGRAM) classes | |
public
| |
constructor Create;
|
|
private
| |
FBufferSize:Integer;
|
|
FBroadcastEnabled:Boolean;
|
|
procedure SetSocketType(ASocketType:Integer); override;
|
|
procedure SetProtocol(AProtocol:Integer); override;
|
|
procedure SetBufferSize(ABufferSize:Integer);
|
|
procedure SetBroadcastEnabled(ABroadcastEnabled:Boolean);
|
|
protected
| |
function RecvFromSocket(ASockAddr:PSockAddr; ASockLen:PInteger; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt; virtual;
|
|
function SendToSocket(ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt; virtual;
|
|
function RecvFromSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:PInteger; AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):LongInt; virtual;
|
|
function SendToSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt; virtual;
|
|
public
| |
property BufferSize:Integer read FBufferSize write SetBufferSize;
|
|
property BroadcastEnabled:Boolean read FBroadcastEnabled write SetBroadcastEnabled;
|
|
function RecvData(AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function SendData(AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function BroadcastData(AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function RecvDataFrom(var AHost:String; var APort:Word; AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function SendDataTo(const AHost:String; APort:Word; AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function BroadcastDataTo(const AAddress:String; APort:Word; AData:Pointer; ACount:Integer):Integer; virtual;
|
Function declarations
constructor TWinsock2UDPSocket.Create;
Description: To be documented
Note | None documented |
---|
procedure TWinsock2UDPSocket.SetSocketType(ASocketType:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2UDPSocket.SetProtocol(AProtocol:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2UDPSocket.SetBufferSize(ABufferSize:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2UDPSocket.SetBroadcastEnabled(ABroadcastEnabled:Boolean);
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.RecvFromSocket(ASockAddr:PSockAddr; ASockLen:PInteger; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.SendToSocket(ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.RecvFromSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:PInteger; AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.SendToSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.RecvData(AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.SendData(AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.BroadcastData(APort:Word; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.RecvDataFrom(var AHost:String; var APort:Word; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.SendDataTo(const AHost:String; APort:Word; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2UDPSocket.BroadcastDataTo(const AAddress:String; APort:Word; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
Return to Unit Reference