UdpStreamSocket

class UdpStreamSocket(host: String, port: Int, sourcePort: Int? = null, receiveSize: Int? = null, broadcastMode: Boolean = false) : StreamSocket

Created by pedro on 22/9/24.

Constructors

Link copied to clipboard
constructor(host: String, port: Int, sourcePort: Int? = null, receiveSize: Int? = null, broadcastMode: Boolean = false)

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open suspend override fun connect()
Link copied to clipboard
open override fun isConnected(): Boolean
Link copied to clipboard
open override fun isReachable(): Boolean
Link copied to clipboard
suspend fun readPacket(): ByteArray
Link copied to clipboard
suspend fun writePacket(bytes: ByteArray)