DatagramSocket

fs2.io.net.DatagramSocket
See theDatagramSocket companion object
trait DatagramSocket[F[_]]

Provides the ability to read/write from a UDP socket in the effect F.

Attributes

Companion:
object
Source:
DatagramSocket.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

Result of joining a multicast group on a UDP socket.

Result of joining a multicast group on a UDP socket.

Attributes

Source:
DatagramSocket.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

def join(join: MulticastJoin[IpAddress], interface: NetworkInterface): F[GroupMembership]

Joins a multicast group on a specific network interface.

Joins a multicast group on a specific network interface.

Attributes

interface

network interface upon which to listen for datagrams

join

group to join

Source:
DatagramSocket.scala

Returns the local address of this udp socket.

Returns the local address of this udp socket.

Attributes

Source:
DatagramSocket.scala
def read: F[Datagram]

Reads a single datagram from this udp socket.

Reads a single datagram from this udp socket.

Attributes

Source:
DatagramSocket.scala

Reads datagrams received from this udp socket.

Reads datagrams received from this udp socket.

Note that multiple reads may execute at same time, causing each evaluation to receive fair amount of messages.

Attributes

Returns:

stream of datagrams

Source:
DatagramSocket.scala
def write(datagram: Datagram): F[Unit]

Writes a single datagram to this udp socket.

Writes a single datagram to this udp socket.

Attributes

datagram

datagram to write

Source:
DatagramSocket.scala
def writes: (F, Datagram) => Nothing

Writes supplied datagrams to this udp socket.

Writes supplied datagrams to this udp socket.

Attributes

Source:
DatagramSocket.scala