# TcpStreamSocket

abstract class TcpStreamSocket : StreamSocket

#### Inheritors

TcpStreamSocketJavaBase
TcpStreamSocketKtorBase

## Constructors

TcpStreamSocket
Link copied to clipboard
constructor()

## Functions

close
Link copied to clipboard
abstract suspend fun close()
connect
Link copied to clipboard
abstract suspend fun connect()
flush
Link copied to clipboard
abstract suspend fun flush()
isConnected
Link copied to clipboard
abstract fun isConnected(): Boolean
isReachable
Link copied to clipboard
abstract fun isReachable(): Boolean
read
Link copied to clipboard
abstract suspend fun read(bytes: ByteArray)
abstract suspend fun read(size: Int): ByteArray
readLine
Link copied to clipboard
abstract suspend fun readLine(): String?
write
Link copied to clipboard
abstract suspend fun write(bytes: ByteArray)
abstract suspend fun write(b: Int)
abstract suspend fun write(string: String)
abstract suspend fun write(bytes: ByteArray, offset: Int, size: Int)