abstract struct Socket::Address

Defined in:

wrench/socket/address.cr

Constructors

Class Method Summary

Constructor Detail

def self.ipv4_from_io(io : IO, addrlen : Int = 4) : Address #

[View source]
def self.ipv6_from_io(io : IO, addrlen : Int = 16) : Address #

[View source]

Class Method Detail

def self.ipv4_to_bytes(ip_address : Address) : Bytes | Nil #

[View source]
def self.ipv4_to_bytes!(ip_address : Address) : Bytes #

[View source]
def self.ipv6_to_bytes(ip_address : Address) : Bytes | Nil #

[View source]
def self.ipv6_to_bytes!(ip_address : Address) : Bytes #

[View source]