public final class TSAP extends Object
Modifier and Type | Field and Description |
---|---|
StringBuilder |
dotted_ip |
int |
ip |
int |
port |
InetSocketAddress |
sockaddr |
Modifier and Type | Method and Description |
---|---|
static TSAP |
build(String hostport,
int port) |
static TSAP |
build(String hostport,
int port,
boolean with_dotted) |
void |
clear() |
static InetSocketAddress |
createSocketAddress(int ip,
int port) |
static InetSocketAddress |
createSocketAddress(int ip,
int port,
byte[] workbuf) |
void |
ensureDotted() |
boolean |
equals(Object obj) |
static TSAP |
get(InetAddress jdkip,
int port,
TSAP tsap) |
static TSAP |
get(InetAddress jdkip,
int port,
TSAP tsap,
boolean with_dotted) |
static TSAP |
get(InetAddress jdkip,
int port,
TSAP tsap,
boolean with_dotted,
boolean with_sockaddr) |
static TSAP |
get(Socket sock,
boolean local,
TSAP tsap,
boolean with_dotted) |
int |
hashCode() |
void |
set(int ipnum,
int portnum,
boolean with_dotted) |
String |
toString() |
public int ip
public int port
public InetSocketAddress sockaddr
public StringBuilder dotted_ip
public static TSAP build(String hostport, int port) throws UnknownHostException
UnknownHostException
public static TSAP get(InetAddress jdkip, int port, TSAP tsap)
public static TSAP get(InetAddress jdkip, int port, TSAP tsap, boolean with_dotted)
public static InetSocketAddress createSocketAddress(int ip, int port)
public static TSAP build(String hostport, int port, boolean with_dotted) throws UnknownHostException
UnknownHostException
public static TSAP get(InetAddress jdkip, int port, TSAP tsap, boolean with_dotted, boolean with_sockaddr)
public void set(int ipnum, int portnum, boolean with_dotted) throws UnknownHostException
UnknownHostException
public void ensureDotted()
public void clear()
public static InetSocketAddress createSocketAddress(int ip, int port, byte[] workbuf)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.