SPVM::Sys::Socket::Sockaddr::Storage - struct sockaddr_storage in the C language
The Sys::Socket::Sockaddr::Storage class in SPVM represents struct sockaddr_storage in the C language.
use Sys::Socket::Sockaddr::Storage;
This class is a pointer class. The pointer the instance has is set to a struct sockaddr_storage object.
Sys::Socket::Sockaddr
static method new : Sys::Socket::Sockaddr::Storage ();
Create a new Sys::Socket::Sockaddr::Storage object.
method DESTROY : void ()
The destructor.
method sa_family : int ()
Returns sa_family.
sa_family
method ss_family : int ()
Returns ss_family.
ss_family
method set_ss_family : void ($family : int)
Sets ss_family.
method size : int ()
Returns the size of struct sockaddr_storage.
struct sockaddr_storage
method clone : Sys::Socket::Sockaddr::Storage ();
Clones this instance and returns it.
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.