SocketGroup

final class SocketGroup(asg: AsynchronousSocketGroup, blocker: Blocker)
Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def open[F[_]](address: InetSocketAddress, reuseAddress: Boolean, sendBufferSize: Option[Int], receiveBufferSize: Option[Int], allowBroadcast: Boolean, protocolFamily: Option[ProtocolFamily], multicastInterface: Option[NetworkInterface], multicastTTL: Option[Int], multicastLoopback: Boolean)(F: Concurrent[F], CS: ContextShift[F]): Resource[F, Socket[F]]

Provides a UDP Socket that, when run, will bind to the specified address.

Provides a UDP Socket that, when run, will bind to the specified address.

Value Params
address

address to bind to; defaults to an ephemeral port on all interfaces

allowBroadcast

whether broadcast messages are allowed to be sent; defaults to true

multicastInterface

network interface for sending multicast packets

multicastLoopback

whether sent multicast packets should be looped back to this host

multicastTTL

time to live of sent multicast packets

protocolFamily

protocol family to use when opening the supporting DatagramChannel

receiveBufferSize

size of receive buffer (see java.net.StandardSocketOptions.SO_RCVBUF)

reuseAddress

whether address has to be reused (see java.net.StandardSocketOptions.SO_REUSEADDR)

sendBufferSize

size of send buffer (see java.net.StandardSocketOptions.SO_SNDBUF)