SmbNamedPipe

class SmbNamedPipe : AutoCloseable

Represents an open handle to an SMB named pipe.

Properties

Link copied to clipboard
Link copied to clipboard
val isClosed: Boolean
Link copied to clipboard
val pipeName: String
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun closeSuspend()
Link copied to clipboard
suspend fun read(maxLength: Int = 4280): ByteArray

Reads data from the named pipe (SMB2 READ).

Link copied to clipboard
suspend fun transceive(input: ByteArray, maxOutputLength: Int = 65536): ByteArray

Performs a combined write and read transaction on the named pipe in a single round-trip using FSCTL_PIPE_TRANSCEIVE (SMB2 IOCTL).

Link copied to clipboard
suspend fun write(data: ByteArray): Int

Writes data to the named pipe (SMB2 WRITE).