toggle menu
river
common
switch theme
search in API
connector-ktor-network
/
com.river.connector.ktor.network
Package-level
declarations
Types
Functions
Properties
Types
Tcp
Link copied to clipboard
object
Tcp
:
ServerTcpExtensions
,
ClientTcpExtensions
Properties
is
Closed
For
Read
Link copied to clipboard
val
Connection
.
isClosedForRead
:
Boolean
is
Closed
For
Write
Link copied to clipboard
val
Connection
.
isClosedForWrite
:
Boolean
is
Connection
Active
Link copied to clipboard
val
Connection
.
isConnectionActive
:
Boolean
packet
Link copied to clipboard
val
ByteArray
.
packet
:
ByteReadPacket
Functions
await
Bytes
Link copied to clipboard
inline suspend
fun
Connection
.
awaitBytes
(
size
:
Int
=
8
)
:
ByteArray
await
Closed
Link copied to clipboard
suspend
fun
Connection
.
awaitClosed
(
)
await
Line
Link copied to clipboard
inline suspend
fun
Connection
.
awaitLine
(
)
:
String
?
inline suspend
fun
Connection
.
awaitLine
(
ifEmpty
:
(
)
->
String
)
:
String
close
Link copied to clipboard
fun
Connection
.
close
(
)
flow
Of
Link copied to clipboard
inline
fun
<
T
>
Connection
.
flowOf
(
crossinline
next
:
suspend
Connection
.
(
)
->
T
)
:
Flow
<
T
>
flow
Of
Byte
Array
Link copied to clipboard
inline
fun
Connection
.
flowOfByteArray
(
size
:
Int
=
8
)
:
Flow
<
ByteArray
>
flow
Of
Bytes
Link copied to clipboard
inline
fun
Connection
.
flowOfBytes
(
)
:
Flow
<
Byte
>
flow
Of
Lines
Link copied to clipboard
inline
fun
Connection
.
flowOfLines
(
)
:
Flow
<
String
>
flush
Link copied to clipboard
inline
fun
Connection
.
flush
(
f
:
Connection
.
(
)
->
Unit
)
use
Link copied to clipboard
inline
fun
<
T
>
Connection
.
use
(
block
:
(
Connection
)
->
T
)
:
T
while
Active
Link copied to clipboard
suspend
fun
Connection
.
whileActive
(
operation
:
suspend
Connection
.
(
)
->
Unit
)
write
Link copied to clipboard
inline suspend
fun
Connection
.
write
(
data
:
ByteArray
,
flush
:
Boolean
=
false
)
inline suspend
fun
Connection
.
write
(
data
:
CharSequence
,
flush
:
Boolean
=
false
)
write
Line
Link copied to clipboard
inline suspend
fun
Connection
.
writeLine
(
data
:
CharSequence
=
""
,
flush
:
Boolean
=
false
)