Name
SPVM::Sys::Socket::Sockaddr::Storage - struct sockaddr_storage in the C language
Description
Sys::Socket::Sockaddr::Storage class in SPVM represents struct sockaddr_storage in the C language.
Usage
use Sys::Socket::Sockaddr::Storage;
Details
This class is a pointer class. The pointer the instance has is set to a struct sockaddr_storage object.
Super Class
Class Methods
new
static method new : Sys::Socket::Sockaddr::Storage ();
Create a new Sys::Socket::Sockaddr::Storage object.
Instance Methods
DESTROY
method DESTROY : void ()
The destructor.
sa_family
method sa_family : int ()
Returns sa_family
.
ss_family
method ss_family : int ()
Returns ss_family
.
set_ss_family
method set_ss_family : void ($family : int)
Sets ss_family
.
size
method size : int ()
Returns the size of struct sockaddr_storage
.
clone
method clone : Sys::Socket::Sockaddr::Storage ();
Clones this instance and returns it.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License