Name

SPVM::Sys::Socket::Sockaddr::Un - struct sockaddr_un in the C language

Description

The Sys::Socket::Sockaddr::Un class in SPVM represents struct sockaddr_un in the C language.

Usage

use Sys::Socket::Sockaddr::Un;

Details

This class is a pointer class. The pointer the instance has is set to a struct sockaddr_un object.

Inheritance

Sys::Socket::Sockaddr

Class Methods

new

static method new : Sys::Socket::Sockaddr::Un ();

Creates a new Sys::Socket::Sockaddr::Un object.

Instance Methods

DESTROY

method DESTROY : void ();

The destructor.

sa_family

method sa_family : int ()

Returns sa_family.

sun_family

method sun_family : int ();

Returns sun_family.

set_sun_family

method set_sun_family : void ($family : int)

Sets sun_family.

sun_path

method sun_path : string ();

Copies sun_path and returns it.

set_sun_path

method set_sun_path : void ($path : string)

Sets sun_path.

size

method size : int ()

Returns the size of struct sockaddr_un.

clone

method clone : Sys::Socket::Sockaddr::Un ();

Clones this instance and returns it.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License