TWinsock2RAWSocket
From Ultibo.org
Revision as of 04:09, 6 June 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Winsock2 __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-...")
Return to Unit Winsock2
Description
To be documented
Class definitions
TWinsock2RAWSocket = class(TWinsock2Socket)
Note: Raw Socket (SOCK_RAW) 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(APort:Word; AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function RecvDataFrom(var AHost:String; AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function SendDataTo(const AHost:String; AData:Pointer; ACount:Integer):Integer; virtual;
|
|
function BroadcastDataTo(const AAddress:String; AData:Pointer; ACount:Integer):Integer; virtual;
|
Function declarations
constructor TWinsock2RAWSocket.Create;
Description: To be documented
Note | None documented |
---|
procedure TWinsock2RAWSocket.SetSocketType(ASocketType:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2RAWSocket.SetProtocol(AProtocol:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2RAWSocket.SetBufferSize(ABufferSize:Integer);
Description: To be documented
Note | None documented |
---|
procedure TWinsock2RAWSocket.SetBroadcastEnabled(ABroadcastEnabled:Boolean);
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.RecvFromSocket(ASockAddr:PSockAddr; ASockLen:PInteger; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.SendToSocket(ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.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 TWinsock2RAWSocket.SendToSocketEx(AHandle:THandle; ASockAddr:PSockAddr; ASockLen:Integer; AData:Pointer; ASize:Integer; var ACount:Integer):LongInt;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.RecvData(AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.SendData(AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.BroadcastData(AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.RecvDataFrom(var AHost:String; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.SendDataTo(const AHost:String; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
function TWinsock2RAWSocket.BroadcastDataTo(const AAddress:String; AData:Pointer; ACount:Integer):Integer;
Description: To be documented
Note | None documented |
---|
Return to Unit Reference