public interface AnonChannel
createChannel
It provides an OutputStream
and InputStream
implementation
to send and receive data.
Modifier and Type | Field and Description |
---|---|
static int |
HTTP
Constant for the channel type: HTTP-Proxy.
|
static int |
SMTP
Constant for the channel type: SMTP-Proxy.
|
static int |
SOCKS
Constant for the channel type: SOCKS-Proxy.
|
static int |
TCP
Constant for the channel type: TCP.
|
static int |
UDP
Constant for the channel type: UDP.
|
static int |
UDP_OVER_TCP
Constant for the channel type: UDP.
|
static int |
UDP_OVER_UDP
Constant for the channel type: UDP.
|
static int |
VPN
Constant for the channel type: VPN-like Service.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the channel and releases all resources used.
|
java.io.InputStream |
getInputStream()
The returned InputStream could be used to receive data.
|
int |
getOutputBlockSize()
Returns a value that indicates the current optimum size of data to write.
|
java.io.OutputStream |
getOutputStream()
The returned OutputStream could be used to send data.
|
boolean |
isClosed()
Returns if the channel is already closed, i.e. no data can be sent / recieved any more on this channel.
|
static final int HTTP
static final int SOCKS
static final int VPN
static final int SMTP
static final int TCP
static final int UDP
static final int UDP_OVER_TCP
static final int UDP_OVER_UDP
java.io.InputStream getInputStream()
java.io.OutputStream getOutputStream()
int getOutputBlockSize()
void close()
boolean isClosed()
true
, if the channel is already closedCopyright © 2023. All rights reserved.