Class TTCP_UDPPort
Unit
Declaration
type TTCP_UDPPort = class(TCommPortDriver)
Description
TTCP_UDPPort
Hierarchy
- TComponent
- TCommPortDriver
- TTCP_UDPPort
Overview
Methods
procedure Read(Packet:PIOPacket); override; |
|
procedure Write(Packet:PIOPacket); override; |
|
procedure NeedSleepBetweenRW; override; |
|
procedure PortStart(var Ok:Boolean); override; |
|
procedure PortStop(var Ok:Boolean); override; |
|
function ComSettingsOK:Boolean; override; |
|
procedure ClearALLBuffers; override; |
|
procedure DoPortDisconnected(sender: TObject); override; |
|
procedure DoPortOpenError(sender: TObject); override; |
|
procedure connectSocket(var Ok: Boolean); |
|
procedure CloseMySocket(var closed: Boolean); |
|
procedure reconnectSocket(var Ok:Boolean); |
|
procedure CheckSocket(var Ok:Boolean); |
|
function ReallyActive: Boolean; override; |
Properties
property Host: AnsiString read FHostName write SetHostname nodefault; |
|
property Port: LongInt read FPortNumber write SetPortNumber default 102; |
|
property Timeout: LongInt read FTimeout write SetTimeout default 1000; |
|
property PortType: TPortType read FPortType write SetPortType default ptTCP; |
|
property ExclusiveDevice: Boolean read FExclusiveDevice write SetExclusive; |
|
property EnableAutoReconnect: Boolean read GetEnableAutoReconect write setEnableAutoReconnect stored true default true; |
|
property ReconnectRetryInterval: Integer read GetReconnectInterval write SetReconnectInterval stored true default 5000; |
|
property OnCommPortOpened; |
|
property OnCommPortOpenError; |
|
property OnCommPortClosed; |
|
property OnCommPortCloseError; |
|
property OnCommErrorReading; |
|
property OnCommErrorWriting; |
|
property OnCommPortDisconnected; |
Description
Methods
procedure Read(Packet:PIOPacket); override; |
|
: See also |
procedure Write(Packet:PIOPacket); override; |
|
: See also |
procedure NeedSleepBetweenRW; override; |
|
: See also |
procedure PortStart(var Ok:Boolean); override; |
|
: See also |
procedure PortStop(var Ok:Boolean); override; |
|
: See also |
function ComSettingsOK:Boolean; override; |
|
: See also |
procedure ClearALLBuffers; override; |
|
: See also |
procedure DoPortDisconnected(sender: TObject); override; |
|
: See also |
procedure DoPortOpenError(sender: TObject); override; |
|
: See also |
procedure connectSocket(var Ok: Boolean); |
|
procedure CloseMySocket(var closed: Boolean); |
|
procedure reconnectSocket(var Ok:Boolean); |
|
procedure CheckSocket(var Ok:Boolean); |
|
function ReallyActive: Boolean; override; |
|
Properties
property Host: AnsiString read FHostName write SetHostname nodefault; |
|
: Hostname or address of the server to connect. |
property Port: LongInt read FPortNumber write SetPortNumber default 102; |
|
: Server port to connect. To use Modbus, set this to 502 and to use Siemens ISOTCP set it to 102. |
property Timeout: LongInt read FTimeout write SetTimeout default 1000; |
|
: Timeout in milliseconds to I/O operations. |
property PortType: TPortType read FPortType write SetPortType default ptTCP; |
|
: Port kind (TCP or UDP). . See also |
property ExclusiveDevice: Boolean read FExclusiveDevice write SetExclusive; |
|
: Tells if the communication port is exclusive (avoid it to be opened in design time). |
property EnableAutoReconnect: Boolean read GetEnableAutoReconect write setEnableAutoReconnect stored true default true; |
|
: Enables the auto reconnection if a connection is lost or failed. |
property ReconnectRetryInterval: Integer read GetReconnectInterval write SetReconnectInterval stored true default 5000; |
|
: Time to retry a lost connection in milliseconds. |
property OnCommPortOpened; |
|
: See also |
property OnCommPortOpenError; |
|
: See also |
property OnCommPortClosed; |
|
: See also |
property OnCommPortCloseError; |
|
: See also |
property OnCommErrorReading; |
|
: See also |
property OnCommErrorWriting; |
|
: See also |
property OnCommPortDisconnected; |
|
: See also |
Generated by PasDoc 0.14.0.