Name
SPVM::Sys::Socket::In6_addr - struct in6_addr in the C language
Description
The Sys::Socket::In6_addr class in SPVM represents struct in6_addr in the C language.
Usage
use Sys::Socket::In6_addr;
Details
This class is a pointer class. The pointer the instance has is set to a struct in6_addr object.
Class Methods
new
static method new : Sys::Socket::In6_addr ();
Creates a new Sys::Socket::In6_addr object.
Instance Methods
DESTROY
method DESTROY : void ();
The destructor.
s6_addr
method s6_addr : string ();
Copies s6_addr
and returns it.
set_s6_addr
method set_s6_addr : void ($address : string);
Sets s6_addr
.
Exceptions.
The address must be defined. Otherwise an exception is thrown.
The length of the address must be less than or equal to 16. Otherwise an exception is thrown.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License