SocketAddr
Type of socket addresses, and its functions.
case V4(SocketAddrV4)case V6(SocketAddrV6)Type of socket addresses.
A socket address is either an IPv4 or an IPv6 socket address.
Instances
Definitions
def fromString(x: String): Option[SocketAddr]§ SourceAttempts 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§ SourceReturn the IpAddr of the SocketAddr s.
def port(s: SocketAddr): Int32§ SourceReturn the port of the SocketAddr s.