LimeWire Consolidated API

com.limegroup.gnutella
Class LocalSocketAddressProviderImpl

java.lang.Object
  extended by com.limegroup.gnutella.LocalSocketAddressProviderImpl
All Implemented Interfaces:
LocalSocketAddressProvider

public class LocalSocketAddressProviderImpl
extends Object
implements LocalSocketAddressProvider


Constructor Summary
LocalSocketAddressProviderImpl(NetworkManager networkManager)
           
 
Method Summary
 byte[] getLocalAddress()
          Retrieves the current local address.
 int getLocalPort()
          Retrieves the current local port.
 boolean isLocalAddressPrivate()
          Determines whether this provider considers local address (that is, 127.0.0.1, 192.168.*.*, etc...) private addresses
 boolean isTLSCapable()
          Determines if the socket listening on the local addr/port is capable of accepting TLS connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalSocketAddressProviderImpl

@Inject
public LocalSocketAddressProviderImpl(NetworkManager networkManager)
Method Detail

getLocalAddress

public byte[] getLocalAddress()
Description copied from interface: LocalSocketAddressProvider
Retrieves the current local address.

Specified by:
getLocalAddress in interface LocalSocketAddressProvider

getLocalPort

public int getLocalPort()
Description copied from interface: LocalSocketAddressProvider
Retrieves the current local port.

Specified by:
getLocalPort in interface LocalSocketAddressProvider

isLocalAddressPrivate

public boolean isLocalAddressPrivate()
Description copied from interface: LocalSocketAddressProvider
Determines whether this provider considers local address (that is, 127.0.0.1, 192.168.*.*, etc...) private addresses

Specified by:
isLocalAddressPrivate in interface LocalSocketAddressProvider

isTLSCapable

public boolean isTLSCapable()
Description copied from interface: LocalSocketAddressProvider
Determines if the socket listening on the local addr/port is capable of accepting TLS connections.

Specified by:
isTLSCapable in interface LocalSocketAddressProvider

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.