Enumeration
enum SocketAddressKind
public enum SocketAddressKind <: ToString & Equatable<SocketAddressKind> {
| IPv4
| IPv6
| Unix
}
Description: Specifies the Internet communication protocol type.
Parent Type:
IPv4
IPv4
Description: Indicates the IPv4 protocol.
IPv6
IPv6
Description: Indicates the IPv6 protocol.
Unix
Unix
Description: Indicates the Unix protocol.
func toString()
public func toString(): String
Description: Converts an enumerated value into a string.
Returns:
- String: string obtained through conversion
operator func !=(SocketAddressKind)
public operator func !=(that: SocketAddressKind): Bool
Description: Checks whether two SocketAddressKind instances are not equal.
Parameters:
- that: SocketAddressKind: input SocketAddressKind
Returns:
- Bool: If they are not equal,
true
is returned; otherwise,false
is returned.
operator func ==(SocketAddressKind)
public operator func ==(that: SocketAddressKind): Bool
Description: Checks whether two SocketAddressKind instances are equal.
Parameters:
- that: SocketAddressKind: input SocketAddressKind
Returns:
- Bool: If they are equal,
true
is returned; otherwise,false
is returned.
enum SocketNet
public enum SocketNet <: ToString & Equatable<SocketNet> {
| TCP
| UDP
| UNIX
}
Description: Specifies the transport layer protocol type.
Parent Type:
TCP
TCP
Description: Indicates the TCP protocol.
UDP
UDP
Description: Indicates the UDP protocol.
UNIX
UNIX
Description: Indicates the UNIX protocol.
func toString()
public func toString(): String
Description: Converts an enumerated value into a string.
Returns:
- String: string obtained through conversion
operator func !=(SocketNet)
public operator func !=(that: SocketNet): Bool
Description: Checks whether two SocketNet instances are not equal.
Parameters:
Returns:
- Bool: If they are not equal,
true
is returned; otherwise,false
is returned.
operator func ==(SocketNet)
public operator func ==(that: SocketNet): Bool
Description: Checks whether two SocketNet instances are equal.
Parameters:
Returns:
- Bool: If they are equal,
true
is returned; otherwise,false
is returned.