toggle menu
RootEncoder
androidJvm
switch theme
search in API
rtmp
/
com.pedro.rtmp.utils.socket
/
TcpTunneledSocket
Tcp
Tunneled
Socket
class
TcpTunneledSocket
(
host
:
String
,
port
:
Int
,
secured
:
Boolean
)
:
RtmpSocket
Created by pedro on 5/4/22.
Members
Constructors
Tcp
Tunneled
Socket
Link copied to clipboard
constructor
(
host
:
String
,
port
:
Int
,
secured
:
Boolean
)
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
open
suspend override
fun
flush
(
isPacket
:
Boolean
)
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
open
suspend override
fun
read
(
)
:
Int
read
UInt16
Link copied to clipboard
open
suspend override
fun
readUInt16
(
)
:
Int
read
UInt24
Link copied to clipboard
open
suspend override
fun
readUInt24
(
)
:
Int
read
UInt32
Link copied to clipboard
open
suspend override
fun
readUInt32
(
)
:
Int
read
UInt32Little
Endian
Link copied to clipboard
open
suspend override
fun
readUInt32LittleEndian
(
)
:
Int
read
Until
Link copied to clipboard
open
suspend override
fun
readUntil
(
b
:
ByteArray
)
write
Link copied to clipboard
open
suspend override
fun
write
(
b
:
ByteArray
)
open
suspend override
fun
write
(
b
:
Int
)
open
suspend override
fun
write
(
b
:
ByteArray
,
offset
:
Int
,
size
:
Int
)
write
UInt16
Link copied to clipboard
open
suspend override
fun
writeUInt16
(
b
:
Int
)
write
UInt24
Link copied to clipboard
open
suspend override
fun
writeUInt24
(
b
:
Int
)
write
UInt32
Link copied to clipboard
open
suspend override
fun
writeUInt32
(
b
:
Int
)
write
UInt32Little
Endian
Link copied to clipboard
open
suspend override
fun
writeUInt32LittleEndian
(
b
:
Int
)