UDPSocketOptions

class UDPSocketOptions : SocketOptions.PeerSocketOptions

Represents UDP socket options

Properties

Link copied to clipboard
var broadcast: Boolean = false

SO_BROADCAST socket option

Link copied to clipboard
var receiveBufferSize: Int

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

Link copied to clipboard
var reuseAddress: Boolean = false

SO_REUSEADDR option

Link copied to clipboard
var reusePort: Boolean = false

SO_REUSEPORT option, may not work with old JDK (will be silently ignored)

Link copied to clipboard
var sendBufferSize: Int

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

Link copied to clipboard
var typeOfService: TypeOfService

ToS value, TypeOfService.UNDEFINED by default, may not work with old JDK (will be silently ignored)