TcpSocket

interface TcpSocket

Types

Builder
Link copied to clipboard
common
interface Builder
IOException
Link copied to clipboard
common
sealed class IOException : Exception
TLS
Link copied to clipboard
common
sealed class TLS

Functions

close
Link copied to clipboard
common
abstract fun close()
receiveAvailable
Link copied to clipboard
common
abstract suspend fun receiveAvailable(buffer: ByteArray): Int
receiveFully
Link copied to clipboard
common
abstract suspend fun receiveFully(buffer: ByteArray)
send
Link copied to clipboard
common
abstract suspend fun send(bytes: ByteArray?, flush: Boolean = true)

Inheritors

IosTcpSocket
Link copied to clipboard
JvmTcpSocket
Link copied to clipboard

Extensions

linesFlow
Link copied to clipboard
common
fun TcpSocket.linesFlow(): Flow<String>
receiveFully
Link copied to clipboard
common
suspend fun TcpSocket.receiveFully(size: Int): ByteArray