6.92. kink/socket/SOCKET_ADDRESS¶
6.92.1. type socket_address¶
`socket_address` is a supertype of `ip_port` and `unix_domain_socket_path`.
6.92.1.1. Addr.protocol_family¶
`protocol_family` returns the protocol family of the socket address as `protocol_family` type.
See kink/socket/PROTOCOL_FAMILY for `protocol_family` type.
6.92.1.2. Addr1 == Addr2¶
`==` operator, or `op_eq` method, returns true if and only if one of the following conditions is met.
• `Addr1` and `Addr2` are both values of `ip_port` type, and they have the same ip address and the port number.
• `Addr1` and `Addr2` are both values of `unix_domain_socket_path` type, the paths of them are equal by `==` operator of type `str`.
Precondition
`Addr2` must be a `socket_address` value.
6.92.2. SOCKET_ADDRESS.is?(Val)¶
`is?` returns whether `Val` is a `socket_address`.