StreamChannel
class StreamChannel(socket: Socket, inputStream: InputStream, outputStream: OutputStream) : Flushable, ByteChannel, InterruptibleChannel
Content copied to clipboard
Channel wrapping a Socket with support for TLS and compression layers
Constructors
Link copied to clipboard
fun StreamChannel(socket: Socket, inputStream: InputStream = socket.getInputStream(), outputStream: OutputStream = socket.getOutputStream())
Content copied to clipboard
Functions
Link copied to clipboard
Reads from the channel into a given byte buffer and returns the amount of written bytes
Link copied to clipboard
Return a copy of the current channel with DEFLATE compression
Link copied to clipboard
Return a copy of the current channel with TLS
Link copied to clipboard
Write a given byte buffer to the channel and return the amount of written bytes