SPVM::Sys::Socket::Sockaddr::In - struct sockaddr_in in C language
use Sys::Socket::Sockaddr::In;
Sys::Socket::Sockaddr::In is the class for the struct sockaddr_in in C language.
Sys::Socket::Sockaddr::In
struct sockaddr_in
C language
This is a pointer class.
This class inherits Sys::Socket::Sockaddr.
static method new : Sys::Socket::Sockaddr::In ();
Create a new Sys::Socket::Sockaddr::In object.
method DESTROY : void ();
The destructor.
method sa_family : int ()
Gets sa_family. This is the overriden method of the sa_family method in the Sys::Socket::Sockaddr class.
sa_family
method sin_family : int ();
Gets sin_family.
sin_family
method set_sin_family : void ($family : int);
Sets sin_family.
method copy_sin_addr : Sys::Socket::In_addr ();
Copies sin_addr. This is a Sys::Socket::In_addr object.
sin_addr
method set_sin_addr : void ($address : Sys::Socket::In_addr);
Sets sin_addr. This is a Sys::Socket::In_addr object.
method sin_port : int ();
Gets sin_port.
sin_port
method set_sin_port : void ($port : int);
Sets sin_port.
method sizeof : int ()
The size of struct sockaddr_in.
method clone : Sys::Socket::Sockaddr::In () {
Clones this object.
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.
To install SPVM::Sys, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Sys
CPAN shell
perl -MCPAN -e shell install SPVM::Sys
For more information on module installation, please visit the detailed CPAN module installation guide.