Difference between revisions of "TUDPSocket"
From Ultibo.org
(Created page with "Return to Unit UDP __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapsed"...") |
(No difference)
|
Latest revision as of 01:34, 31 May 2018
Return to Unit UDP
Description
To be documented
Class definitions
TUDPSocket = class(TProtocolSocket)
Note: SOCK_DGRAM | |
constructor Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);
|
|
destructor Destroy; override;
|
|
private
| |
FRecvData:TUDPBuffer;
|
|
public
| |
property RecvData:TUDPBuffer read FRecvData;
|
|
function GetOption(ALevel,AOptName:Integer; AOptValue:PChar; var AOptLength:Integer):Integer; override;
|
|
function SetOption(ALevel,AOptName:Integer; AOptValue:PChar; AOptLength:Integer):Integer; override;
|
|
function IoCtl(ACommand:DWORD; var AArgument:u_long):Integer; override;
|
|
function IsConnected(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean; override;
|
|
function IsListening(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean; override;
|
Function declarations
constructor TUDPSocket.Create(AProtocol:TNetworkProtocol; ATransport:TNetworkTransport);
Description: To be documented
Note | None documented |
---|
destructor TUDPSocket.Destroy;
Description: To be documented
Note | None documented |
---|
function TUDPSocket.GetOption(ALevel,AOptName:Integer; AOptValue:PChar; var AOptLength:Integer):Integer;
Description: To be documented
Note | With Socket Options that are Boolean 0 is False and > 0 is True |
---|
function TUDPSocket.SetOption(ALevel,AOptName:Integer; AOptValue:PChar; AOptLength:Integer):Integer;
Description: To be documented
Note | With Socket Options that are Boolean 0 is False and > 0 is True |
---|
function TUDPSocket.IoCtl(ACommand:DWORD; var AArgument:u_long):Integer;
Description: To be documented
Note | None documented |
---|
function TUDPSocket.IsConnected(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean;
Description: Check if this UDP Socket is Connected to the Host specified by RemoteAddress/Port
Note | A connected Socket will have a Bound LocalAddress/Port and a Connected RemoteAddress/Port |
---|
function TUDPSocket.IsListening(ALocalAddress,ARemoteAddress:Pointer; ALocalPort,ARemotePort:Word; ABroadcast:Boolean):Boolean;
Description: Check if this UDP Socket is Listening on the LocalAddress/Port specified
Note | A listening Socket may or may not have a Bound LocalAddress/Port and will have a default (INADDR_ANY/IPPORT_ANY) RemoteAddress/Port |
---|
Return to Unit Reference