public interface SocketConnection extends StreamConnection
Modifier and Type | Field and Description |
---|---|
static byte |
DELAY |
static byte |
KEEPALIVE |
static byte |
LINGER |
static byte |
RCVBUF |
static byte |
SNDBUF |
Modifier and Type | Method and Description |
---|---|
String |
getAddress() |
String |
getLocalAddress() |
int |
getLocalPort() |
int |
getPort() |
int |
getSocketOption(byte option) |
void |
setSocketOption(byte option,
int value) |
openDataInputStream, openInputStream
openDataOutputStream, openOutputStream
close
static final byte DELAY
static final byte LINGER
static final byte KEEPALIVE
static final byte RCVBUF
static final byte SNDBUF
void setSocketOption(byte option, int value) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
int getSocketOption(byte option) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
String getLocalAddress() throws IOException
IOException
int getLocalPort() throws IOException
IOException
String getAddress() throws IOException
IOException
int getPort() throws IOException
IOException