Name
SPVM::Sys::Socket::Sockaddr::In6 - struct sockaddr_in6 in the C language
Usage
use Sys::Socket::Sockaddr::In6;
Description
The Sys::Socket::Sockaddr::In6 class in SPVM represents struct sockaddr_in6 in the C language.
Details
This class is a pointer class. The pointer the instance has is set to a struct sockaddr_in6 object.
Inheritance
Class Methods
new
static method new : Sys::Socket::Sockaddr::In6 ();
Create a new Sys::Socket::Sockaddr::In6 object.
Instance Methods
DESTROY
method DESTROY : void ()
The destructor.
sa_family
method sa_family : int ()
Returns sa_family
.
sin6_family
method sin6_family : int ();
Returns sin6_family
.
set_sin6_family
method set_sin6_family : void ($family : int)
Sets sin6_family
.
sin6_flowinfo
method sin6_flowinfo : int ()
Returns sin6_flowinfo
.
set_sin6_flowinfo
method set_sin6_flowinfo : void ($flowinfo : int)
Sets sin6_flowinfo
.
sin6_scope_id
method sin6_scope_id : int ();
Returns sin6_scope_id
.
set_sin6_scope_id
method set_sin6_scope_id : void ($scope_id : int)
Sets sin6_scope_id
.
sin6_addr
method sin6_addr : Sys::Socket::In6_addr ();
Copies sin6_addr
and returns it.
set_sin6_addr
method set_sin6_addr : void ($address : Sys::Socket::In6_addr);
Sets sin6_addr
.
Exceptions:
The address must be defined. Otherwise an exception is thrown.
sin6_port
method sin6_port : int ();
Returns sin6_port
.
set_sin6_port
method set_sin6_port : void ($port : int);
Sets sin6_port
.
size
method size : int ()
Returns the size of struct sockaddr_in6
.
clone
method clone : Sys::Socket::Sockaddr::In6 ();
Clones this instance and returns it.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License