Enum
enum SocketNet
public enum SocketNet <: ToString & Equatable<SocketNet> {
| TCP
| UDP
| UNIX
}
Description: Specifies the transport layer protocol type.
Parent types:
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: Translates an enumerated value into a character string.
Returns:
- String: string after translation
operator func !=(SocketNet)
public operator func !=(that: SocketNet): Bool
Description: Checks whether two SocketNet instances are not equal.
Parameters:
Returns:
- Bool: If the two instances are not equal,
trueis returned. Otherwise,falseis returned.
operator func ==(SocketNet)
public operator func ==(that: SocketNet): Bool
Description: Checks whether two SocketNet instances are equal.
Parameters:
Returns:
- Bool: If the two instances are equal,
trueis returned. Otherwise,falseis returned.