| java.lang.Object com.tc.net.TCSocketAddress
TCSocketAddress | public class TCSocketAddress (Code) | | An emulation (incomplete) of the java.net.InetSocketAddress class (which happens to only be available in 1.4
runtimes) In the TC world, this class is used to describe a location (address + port) to connnect to, and/or listen
on
author: teck |
LOOPBACK_ADDR | final public static InetAddress LOOPBACK_ADDR(Code) | | java.net.InetAddress form of the wildcard IP address (ie. 127.0.0.1)
|
LOOPBACK_IP | final public static String LOOPBACK_IP(Code) | | String form the loopback adaptor address (ie. 127.0.0.1)
|
WILDCARD_ADDR | final public static InetAddress WILDCARD_ADDR(Code) | | java.net.InetAddress form of the wildcard IP address (ie. 0.0.0.0)
|
WILDCARD_IP | final public static String WILDCARD_IP(Code) | | String form of the wildcard IP address (ie. 0.0.0.0)
|
TCSocketAddress | public TCSocketAddress(int port)(Code) | | Creates an address for localhost on the given port
Parameters: port - the port number, can be zero throws: IllegalArgumentException - if port is out of range (0 - 65535) |
TCSocketAddress | public TCSocketAddress(InetAddress addr, int port)(Code) | | Create an TCSocketAdress instance for the gven address on the given port
Parameters: addr - the address to connect to. If null, this constructor behaves exactly likeTCSocketAddress(int port) Parameters: port - the port number, can be zero throws: IllegalArgumentException - if port is out of range (0 - 65535) |
getAddressBytes | public byte[] getAddressBytes()(Code) | | |
getLoopbackBytes | public static byte[] getLoopbackBytes()(Code) | | |
getPort | public int getPort()(Code) | | |
getStringForm | public String getStringForm()(Code) | | Returns a string description of this address instance in the following format: X.X.X.X:port where "X.X.X.X" is the
IP address and "port" is the port number The only purpose of this method is to document the specific format as a
contract. toString() is not required follow the same format
string form of this address |
getWilcardBytes | public static byte[] getWilcardBytes()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isValidPort | public static boolean isValidPort(int port)(Code) | | |
|
|