onAccept (event)
This event is fired when new incoming connection is accepted.
Syntax
- (void)onAccept:(NSString*)remoteAddress :(int)remotePort :(int*)accept;
func onAccept(_ remoteAddress: String, _ remotePort: Int32, _ accept: inout Int32)
Remarks
This event is fired by the class before a new incoming connection is accepted. RemoteAddress contains the IP address of the connecting client. Use the Accept parameter to either accept, or reject the connection.