Name

SPVM::Sys::Socket::Sockaddr::Storage - struct sockaddr_storage in C language

Usage

use Sys::Socket::Sockaddr::Storage;

Description

Sys::Socket::Sockaddr::Storage is the class for the struct sockaddr_storage in C language.

This is a pointer class.

Inheritance

This class inherits Sys::Socket::Sockaddr.

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 ()

Gets sa_family. This is the overriden method of the sa_family method in the Sys::Socket::Sockaddr class.

ss_family

method ss_family : int ()

Gets ss_family.

set_ss_family

method set_ss_family : void ($family : int)

Sets ss_family.

size

method size : int ()

The size of struct sockaddr_storage.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License