ConnectionRequest Event

Fired when a request for connection comes from a remote host.

Syntax

ANSI (Cross Platform)
virtual int FireConnectionRequest(MLLPServerConnectionRequestEventParams *e);
typedef struct {
const char *Address;
int Port;
int Accept; int reserved; } MLLPServerConnectionRequestEventParams; Unicode (Windows) virtual INT FireConnectionRequest(MLLPServerConnectionRequestEventParams *e);
typedef struct {
LPCWSTR Address;
INT Port;
BOOL Accept; INT reserved; } MLLPServerConnectionRequestEventParams;
- (void)onConnectionRequest:(NSString*)address :(int)port :(int*)accept;
#define EID_MLLPSERVER_CONNECTIONREQUEST 4

virtual INT IPWORKSEDI_CALL FireConnectionRequest(LPSTR &lpszAddress, INT &iPort, BOOL &bAccept);

Remarks

This event indicates an incoming connection. The connection is accepted by default. Address and Port will contain information about remote host requesting the inbound connection. If you want to refuse it, you can set the Accept parameter to False.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]