org.lastbamboo.common.p2p
Class P2PConnectionEvent
java.lang.Object
org.lastbamboo.common.p2p.P2PConnectionEvent
public class P2PConnectionEvent
- extends Object
Event for when there's a change in the connectivity status of a P2P
connection.
P2PConnectionEvent
public P2PConnectionEvent(String jid,
Socket sock,
boolean incoming,
boolean connected,
PortMappingState mapping,
SocketType socketType)
getJid
public String getJid()
isIncoming
public boolean isIncoming()
getRemoteSocketAddress
public InetSocketAddress getRemoteSocketAddress()
isConnected
public boolean isConnected()
getSocket
public Socket getSocket()
toString
public String toString()
- Overrides:
toString in class Object
getSocketType
public SocketType getSocketType()
getMapping
public PortMappingState getMapping()
Copyright © 2013 LittleShoot. All Rights Reserved.