Connected Event
Fired immediately after a connection completes (or fails).
Syntax
typedef struct { String RemoteAddress; int RemotePort; int StatusCode; String Description; } TipnSNMPTCPTrapMgrConnectedEventParams; typedef void __fastcall (__closure *TipnSNMPTCPTrapMgrConnectedEvent)(System::TObject* Sender, TipnSNMPTCPTrapMgrConnectedEventParams *e); __property TipnSNMPTCPTrapMgrConnectedEvent OnConnected = { read=FOnConnected, write=FOnConnected };
Remarks
This event fires after a connection completes or fails.
StatusCode is the value returned by the system TCP/IP stack. This will be 0 if the connection was successful.
Description contains a human readable description of the status. This will be "OK" if the connectino was successful.
RemoteAddress is the IP address of the remote host.
RemotePort is the port on the remote host.