Name
SPVM::Sys::Socket::Addrinfo - struct addrinfo in the C language
Description
The Sys::Socket::Addrinfo class in SPVM represents struct addrinfo in the C language.
Usage
use Sys::Socket::Addrinfo;
Details
This class is a pointer class. The pointer the instance has is set to a struct addrinfo object.
Class Methods
new
method new : Sys::Socket::Addrinfo ();
Create a new Sys::Socket::Addrinfo object.
Instance Methods
DESTROY
method DESTROY : void ();
The destructor.
ai_flags
method ai_flags : int ();
Returns ai_flags
.
set_ai_flags
method set_ai_flags : void ($ai_flags : int);
Sets ai_flags
.
ai_family
method ai_family : int ();
Returns ai_family
.
set_ai_family
method set_ai_family : void ($ai_family : int);
Sets ai_family
.
ai_socktype
method ai_socktype : int ();
Returns ai_socktype
.
set_ai_socktype
method set_ai_socktype : void ($ai_socktype : int);
Sets ai_socktype
.
ai_protocol
method ai_protocol : int ();
Returns ai_protocol
.
set_ai_protocol
method set_ai_protocol : void ($ai_protocol : int);
Sets ai_protocol
.
ai_addr
method ai_addr : Sys::Socket::Sockaddr ();
Copies ai_addr
and returns it.
ai_canonname
method ai_canonname : string ();
Copies ai_canonname
and returns it.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License