org.lastbamboo.common.ice
Class PortMappedServerSocket
java.lang.Object
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
PortMappedServerSocket
public PortMappedServerSocket(ServerSocket serverSocket,
boolean isPublic)
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.