Socket::Address

abstract struct Socket::Address

Direct Known Subclasses

Defined in:

socket/address.cr

Class Method Summary

Instance Method Summary

Class Method Detail

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

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

def self.new(family : Family, size : Int32)Source

Instance Method Detail

def ==(other)Source

def family : FamilySource

def size : Int32Source

abstract def to_unsafe : Pointer(LibC::Sockaddr)Source

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/Socket/Address.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部