org.lastbamboo.common.ice
Class PortMappedServerSocket

java.lang.Object
  extended by org.lastbamboo.common.ice.PortMappedServerSocket
All Implemented Interfaces:
MappedServerSocket, org.lastbamboo.common.portmapping.PortMapListener

public class PortMappedServerSocket
extends Object
implements org.lastbamboo.common.portmapping.PortMapListener, MappedServerSocket


Constructor Summary
PortMappedServerSocket(ServerSocket serverSocket, boolean isPublic)
           
 
Method Summary
 boolean equals(Object obj)
           
 InetSocketAddress getHostAddress()
           
 int getMappedPort()
           
 ServerSocket getServerSocket()
           
 int hashCode()
           
 boolean isPortMapped()
           
 void onPortMap(int port)
           
 void onPortMapError()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortMappedServerSocket

public PortMappedServerSocket(ServerSocket serverSocket,
                              boolean isPublic)
Method Detail

onPortMap

public void onPortMap(int port)
Specified by:
onPortMap in interface org.lastbamboo.common.portmapping.PortMapListener

onPortMapError

public void onPortMapError()
Specified by:
onPortMapError in interface org.lastbamboo.common.portmapping.PortMapListener

getServerSocket

public ServerSocket getServerSocket()

isPortMapped

public boolean isPortMapped()
Specified by:
isPortMapped in interface MappedServerSocket

getMappedPort

public int getMappedPort()
Specified by:
getMappedPort in interface MappedServerSocket

getHostAddress

public InetSocketAddress getHostAddress()
Specified by:
getHostAddress in interface MappedServerSocket

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 LittleShoot. All Rights Reserved.