Connected Event
Fired immediately after a connection completes (or fails).
Syntax
ANSI (Cross Platform) virtual int FireConnected(SNMPTCPAgentConnectedEventParams *e);
typedef struct {
const char *RemoteAddress;
int RemotePort;
int StatusCode;
const char *Description; int reserved; } SNMPTCPAgentConnectedEventParams; Unicode (Windows) virtual INT FireConnected(SNMPTCPAgentConnectedEventParams *e);
typedef struct {
LPCWSTR RemoteAddress;
INT RemotePort;
INT StatusCode;
LPCWSTR Description; INT reserved; } SNMPTCPAgentConnectedEventParams;
- (void)onConnected:(NSString*)remoteAddress :(int)remotePort :(int)statusCode :(NSString*)description;
#define EID_SNMPTCPAGENT_CONNECTED 3 virtual INT IPWORKSSNMP_CALL FireConnected(LPSTR &lpszRemoteAddress, INT &iRemotePort, INT &iStatusCode, LPSTR &lpszDescription);
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.