forwardStream

fun forwardStream(readChannel: ByteReadChannel, writeChannel: ByteWriteChannel, remoteHost: String, remotePort: Int, originAddr: String = "127.0.0.1", originPort: Int = 0): StreamForwarder?(source)

Forward Ktor byte channels through an SSH direct-tcpip channel.