public class TypeFilterDataChain extends java.lang.Object implements AnonChannel
Modifier and Type | Class and Description |
---|---|
private class |
TypeFilterDataChain.TypeFilterOutputStreamImplementation |
Modifier and Type | Field and Description |
---|---|
private boolean |
m_firstPacket |
private java.lang.Object |
m_internalSynchronization |
private AnonChannel |
m_originChannel |
private java.io.OutputStream |
m_typeFilterOutputStream |
HTTP, SMTP, SOCKS, TCP, UDP, UDP_OVER_TCP, UDP_OVER_UDP, VPN
Constructor and Description |
---|
TypeFilterDataChain(AnonChannel a_originChannel,
int a_dataChainType) |
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.
|
private AnonChannel m_originChannel
private java.lang.Object m_internalSynchronization
private boolean m_firstPacket
private java.io.OutputStream m_typeFilterOutputStream
public TypeFilterDataChain(AnonChannel a_originChannel, int a_dataChainType)
public java.io.InputStream getInputStream()
AnonChannel
getInputStream
in interface AnonChannel
public java.io.OutputStream getOutputStream()
AnonChannel
getOutputStream
in interface AnonChannel
public int getOutputBlockSize()
AnonChannel
getOutputBlockSize
in interface AnonChannel
public void close()
AnonChannel
close
in interface AnonChannel
public boolean isClosed()
AnonChannel
isClosed
in interface AnonChannel
true
, if the channel is already closedCopyright © 2023. All rights reserved.