LimeWire Consolidated API

org.limewire.io
Interface LocalSocketAddressProvider

All Known Implementing Classes:
LocalSocketAddressProviderImpl

public interface LocalSocketAddressProvider

Defines the interface for a class to return the local IP address, the local port and whether the local address is considered private.


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.
 

Method Detail

getLocalAddress

byte[] getLocalAddress()
Retrieves the current local address.


getLocalPort

int getLocalPort()
Retrieves the current local port.


isLocalAddressPrivate

boolean isLocalAddressPrivate()
Determines whether this provider considers local address (that is, 127.0.0.1, 192.168.*.*, etc...) private addresses


isTLSCapable

boolean isTLSCapable()
Determines if the socket listening on the local addr/port is capable of accepting TLS connections.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.