Returns either an IPAddress or UNIXAddres from the internal OS representation.
Parses a Socket::Address from an URI.
Parses a Socket::Address from an URI.
Returns true if this struct is equal to other.
Struct
Value
Object
Object
Returns either an IPAddress or UNIXAddres from the internal OS representation. Only INET, INET6 and UNIX families are supported.
Parses a Socket::Address from an URI.
Supported formats:
ip://: tcp://: udp://: unix://See IPAddress.parse and UNIXAddress.parse for details.
Parses a Socket::Address from an URI.
Supported formats:
ip://: tcp://: udp://: unix://See IPAddress.parse and UNIXAddress.parse for details.
Returns true if this struct is equal to other.
Both structs's instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.
struct Point def initialize(@x : Int32, @y : Int32) end end p1 = Point.new 1, 2 p2 = Point.new 1, 2 p3 = Point.new 3, 4 p1 == p2 # => true p1 == p3 # => false
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Socket/Address.html