ktor-network / io.ktor.network.sockets / SocketOptions / UDPSocketOptions

UDPSocketOptions

class UDPSocketOptions : PeerSocketOptions

Represents UDP socket options

Properties

broadcast

var broadcast: Boolean

SO_BROADCAST socket option

Inherited Properties

receiveBufferSize

var receiveBufferSize: Int

Socket incoming buffer size (SO_RCVBUF), -1 or 0 to make system decide

sendBufferSize

var sendBufferSize: Int

Socket ougoing buffer size (SO_SNDBUF), -1 or 0 to make system decide

Functions

copyCommon

fun copyCommon(from: SocketOptions): Unit