# UdpSocket

class UdpSocket(type: SocketType, host: String, udpType: UdpType, port: Int, timeout: Long)

Created by pedro on 6/3/24.

## Constructors

UdpSocket
Link copied to clipboard
constructor(type: SocketType, host: String, udpType: UdpType, port: Int, timeout: Long)

## Functions

close
Link copied to clipboard
suspend fun close()
connect
Link copied to clipboard
suspend fun connect()
isConnected
Link copied to clipboard
suspend fun isConnected(): Boolean
isReachable
Link copied to clipboard
fun isReachable(): Boolean
readBuffer
Link copied to clipboard
suspend fun readBuffer(): ByteArray
write
Link copied to clipboard
suspend fun write(mpegTsPacket: MpegTsPacket): Int