Name

SPVM::Sys::Socket::Sockaddr - struct sockaddr in C language

Usage

use Sys::Socket::Sockaddr;

Description

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

This is a pointer class.

Interfaces

Cloneable

Class Methods

new

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

Create a new Sys::Socket::Sockaddr object.

Instance Methods

DESTROY

method DESTROY : void ();

The destructor.

sa_family

method sa_family : int ()

Gets sa_family.

set_sa_family

method sa_family : int ()

Sets sa_family.

sizeof

method size : int ()

Returns the size of the structure. This method is planed to be implemented in a child class.

Exception:

Not implemented.

clone

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

Clones this object. This method is planed to be implemented in a child class.

Exception:

Not implemented.

Well Known Child Classes

Sys::Socket::Sockaddr::In
Sys::Socket::Sockaddr::In6
Sys::Socket::Sockaddr::Un
Sys::Socket::Sockaddr::Storage

Copyright & License

Copyright 2022-2022 Yuki Kimoto, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License