ConnectionRequest Event

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

Syntax

public class DefaultRudpserverEventListener implements RudpserverEventListener {
  ...
  public void connectionRequest(RudpserverConnectionRequestEvent e) {}
  ...
}

public class RudpserverConnectionRequestEvent {
  public String address;
  public int port;
  public boolean accept;
}

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 P2P 2020 Java Edition - Version 20.0 [Build 8235]