flix

0.61.0

SocketAddr

enum SocketAddr with EqSource
case V4(SocketAddrV4)case V6(SocketAddrV6)

Represents a Socket Address.

Instances

instance Eq[SocketAddr]Source
instance FromString[SocketAddr]Source

Definitions

def fromString(x: String): Option[SocketAddr] Source

Attempts to parse the given String x as a SocketAddr.

Returns Some(socket) if the string was successfully parsed. Otherwise returns None.

def ip(s: SocketAddr): IpAddr Source

Return the IpAddr of the SocketAddr s.

def port(s: SocketAddr): Int32 Source

Return the port of the SocketAddr s.