onAccept (event)
Reports an incoming connection.
Syntax
- (void)onAccept:(NSString*)remoteAddress :(int)remotePort :(int*)accept;
func onAccept(_ remoteAddress: String, _ remotePort: Int32, _ accept: inout Int32)
Remarks
This event is fired when a new connection from RemoteAddress:RemotePort is ready to be accepted. Use the Accept parameter to accept or decline it.
Subscribe to Connect event to be notified of every connection that has been set up.