onConnectionRequest (event)
Fired when a request for connection comes from a remote host.
Syntax
- (void)onConnectionRequest:(NSString*)address :(int)port :(int*)accept;
func onConnectionRequest(_ address: String, _ port: Int32, _ accept: inout Int32)
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.