Difference between revisions of "Unit Protocol"
Line 389: | Line 389: | ||
|- | |- | ||
| <code>function GetProtocolByProtocol(AProtocol:TNetworkProtocol; ALock:Boolean; AState:LongWord):TNetworkProtocol;</code> | | <code>function GetProtocolByProtocol(AProtocol:TNetworkProtocol; ALock:Boolean; AState:LongWord):TNetworkProtocol;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function GetProtocolBySocket(ASocket:TProtocolSocket; ALock:Boolean; AState:LongWord):TNetworkProtocol;</code> | ||
| | | | ||
|- | |- | ||
Line 683: | Line 686: | ||
|- | |- | ||
| <code>procedure FlushSockets(All:Boolean); virtual;</code> | | <code>procedure FlushSockets(All:Boolean); virtual;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>function SelectGet(AReadfds,AWritefds,AExceptfds:PFDSet; var ACode:Integer):TProtocolSocket; virtual;</code> | ||
| | | | ||
|- | |- | ||
Line 691: | Line 699: | ||
|- | |- | ||
| <code>function SelectCheck(ASource,ADest:PFDSet;ACode:Integer):Integer; virtual;</code> | | <code>function SelectCheck(ASource,ADest:PFDSet;ACode:Integer):Integer; virtual;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function SelectWait(ASocket:TProtocolSocket; ACode:Integer; ATimeout:LongWord):Integer; virtual;</code> | ||
| | | | ||
|- | |- |
Revision as of 01:24, 8 June 2017
Return to Unit Reference
Contents
[hide]Description
Ultibo Network Protocol interface unit
To be documented
Constants
PROTOCOL_*
SOCKET_TIMER_KEY_*
SOCKET_TIMER_FLAG_*
ICMP_*
ICMP_UNREACH_*
IGMP_*
Type definitions
Protocol statistics
Socket timer item
Protocol callback
TProtocolCallback = function(AProtocol:TNetworkProtocol):Boolean of object;
|
Filter callback
TFilterCallback = function(AFilter:TNetworkFilter):Boolean of object;
|
Configuration callback
TConfigCallback = function(AConfig:TNetworkConfig):Boolean of object;
|
Class definitions
Protocol manager
TProtocolManager = class(TObject)
Protocol transport
TProtocolTransport = class(TListObject)
Network protocol
TNetworkProtocol = class(TListObject)
Socket timer
TSocketTimer = class(TObject)
Socket thread
TSocketThread = class(TThread)
Protocol port
TProtocolPort = class(TListObject)
Protocol socket
TProtocolSocket = class(TTransportSocket)
Protocol state
TProtocolState = class(TObject)
Protocol options
TProtocolOptions = class(TObject)
Filter transport
TFilterTransport = class(TListObject)
Network filter
TNetworkFilter = class(TListObject)
Configuration transport
TConfigTransport = class(TListObject)
Network configuration
TNetworkConfig = class(TListObject)
Network client
TNetworkClient = class(TListObject)
Public variables
Protocol specific variables
ProtocolManager:TProtocolManager;
|
Function declarations
Initialization functions
Protocol helper functions
Return to Unit Reference