Class IncomingConnectionAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<incoming_connection_alert>
com.frostwire.jlibtorrent.alerts.IncomingConnectionAlert
All Implemented Interfaces:
Alert<incoming_connection_alert>

public final class IncomingConnectionAlert extends AbstractAlert<incoming_connection_alert>
The incoming connection alert is posted every time we successfully accept an incoming connection, through any mean. The most straigh-forward ways of accepting incoming connections are through the TCP listen socket and the UDP listen socket for uTP sockets. However, connections may also be accepted ofer a Socks5 or i2p listen socket, or via a torrent specific listen socket for SSL torrents.
  • Method Details

    • socketType

      Tells you what kind of socket the connection was accepted.
      Returns:
      the socket type
    • endpoint

      public TcpEndpoint endpoint()
      It is the IP address and port the connection came from.
      Returns:
      the endpoint