SPVM::Sys::Socket::Addrinfo - struct addrinfo in the C language
The Sys::Socket::Addrinfo class in SPVM represents struct addrinfo in the C language.
use Sys::Socket::Addrinfo;
This class is a pointer class. The pointer the instance has is set to a struct addrinfo object.
method new : Sys::Socket::Addrinfo ();
Create a new Sys::Socket::Addrinfo object.
method DESTROY : void ();
The destructor.
method ai_flags : int ();
Returns ai_flags.
ai_flags
method set_ai_flags : void ($ai_flags : int);
Sets ai_flags.
method ai_family : int ();
Returns ai_family.
ai_family
method set_ai_family : void ($ai_family : int);
Sets ai_family.
method ai_socktype : int ();
Returns ai_socktype.
ai_socktype
method set_ai_socktype : void ($ai_socktype : int);
Sets ai_socktype.
method ai_protocol : int ();
Returns ai_protocol.
ai_protocol
method set_ai_protocol : void ($ai_protocol : int);
Sets ai_protocol.
method ai_addr : Sys::Socket::Sockaddr ();
Copies ai_addr and returns it.
ai_addr
method ai_canonname : string ();
Copies ai_canonname and returns it.
ai_canonname
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.