org.lastbamboo.common.p2p
Class P2PConnectionEvent

java.lang.Object
  extended by 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.


Constructor Summary
P2PConnectionEvent(String jid, Socket sock, boolean incoming, boolean connected, PortMappingState mapping, SocketType socketType)
           
 
Method Summary
 String getJid()
           
 PortMappingState getMapping()
           
 InetSocketAddress getRemoteSocketAddress()
           
 Socket getSocket()
           
 SocketType getSocketType()
           
 boolean isConnected()
           
 boolean isIncoming()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

P2PConnectionEvent

public P2PConnectionEvent(String jid,
                          Socket sock,
                          boolean incoming,
                          boolean connected,
                          PortMappingState mapping,
                          SocketType socketType)
Method Detail

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.