toggle menu
RootEncoder
androidJvm
switch theme
search in API
common
/
com.pedro.common.socket
/
TcpStreamSocketImp
Tcp
Stream
Socket
Imp
class
TcpStreamSocketImp
(
host
:
String
,
port
:
Int
,
secured
:
Boolean
=
false
,
certificate
:
TrustManager
?
=
null
)
:
TcpStreamSocket
Created by pedro on 22/9/24.
Members
Constructors
Tcp
Stream
Socket
Imp
Link copied to clipboard
constructor
(
host
:
String
,
port
:
Int
,
secured
:
Boolean
=
false
,
certificate
:
TrustManager
?
=
null
)
Functions
close
Link copied to clipboard
open
suspend override
fun
close
(
)
connect
Link copied to clipboard
open
suspend override
fun
connect
(
)
flush
Link copied to clipboard
suspend
fun
flush
(
)
is
Connected
Link copied to clipboard
open
override
fun
isConnected
(
)
:
Boolean
is
Reachable
Link copied to clipboard
open
override
fun
isReachable
(
)
:
Boolean
read
Link copied to clipboard
suspend
fun
read
(
)
:
Int
read
Line
Link copied to clipboard
suspend
fun
readLine
(
)
:
String
?
read
UInt16
Link copied to clipboard
suspend
fun
readUInt16
(
)
:
Int
read
UInt24
Link copied to clipboard
suspend
fun
readUInt24
(
)
:
Int
read
UInt32
Link copied to clipboard
suspend
fun
readUInt32
(
)
:
Int
read
UInt32Little
Endian
Link copied to clipboard
suspend
fun
readUInt32LittleEndian
(
)
:
Int
read
Until
Link copied to clipboard
suspend
fun
readUntil
(
b
:
ByteArray
)
write
Link copied to clipboard
suspend
fun
write
(
b
:
ByteArray
)
:
Unit
?
suspend
fun
write
(
b
:
Int
)
:
Unit
?
suspend
fun
write
(
string
:
String
)
:
Unit
?
suspend
fun
write
(
b
:
ByteArray
,
offset
:
Int
,
size
:
Int
)
:
Unit
?
write
UInt16
Link copied to clipboard
suspend
fun
writeUInt16
(
b
:
Int
)
write
UInt24
Link copied to clipboard
suspend
fun
writeUInt24
(
b
:
Int
)
write
UInt32
Link copied to clipboard
suspend
fun
writeUInt32
(
b
:
Int
)
write
UInt32Little
Endian
Link copied to clipboard
suspend
fun
writeUInt32LittleEndian
(
b
:
Int
)