abstract struct Socket::Address

Defined in:

sniffer/socket_extend.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from(sockaddr : Pointer(LibC::Sockaddr), addrlen) : Address #

Returns either an IPAddress or UNIXAddres from the internal OS representation. Only INET, INET6 and UNIX families are supported.


[View source]

Instance Method Detail

def family : Family #

[View source]
def size : Int32 #

[View source]