Sys/Socket/Sockaddr/Storage.pm untested

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a SCAR -
1 package SPVM::Sys::Socket::Sockaddr::Storage;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Socket::Sockaddr::Storage - struct sockaddr_storage in the C language
8  
9 =head1 Description
10  
11 Sys::Socket::Sockaddr::Storage class in L<SPVM> represents L<struct sockaddr_storage|https://linux.die.net/man/7/socket> in the C language.
12  
13 =head1 Usage
14  
15 use Sys::Socket::Sockaddr::Storage;
16  
17 =head1 Details
18  
19 This class is a pointer class. The pointer the instance has is set to a L<struct sockaddr_storage|https://linux.die.net/man/7/socket> object.
20  
21 =head1 Super Class
22  
23 L<Sys::Socket::Sockaddr|SPVM::Sys::Socket::Sockaddr>
24  
25 =head1 Class Methods
26  
27 =head2 new
28  
29 C<static method new : L<Sys::Socket::Sockaddr::Storage|SPVM::Sys::Socket::Sockaddr::Storage> ();>
30  
31 Create a new L<Sys::Socket::Sockaddr::Storage|SPVM::Sys::Socket::Sockaddr::Storage> object.
32  
33 =head1 Instance Methods
34  
35 =head2 sa_family
36  
37 C<method sa_family : int ()>
38  
39 Returns C<sa_family>.
40  
41 =head2 ss_family
42  
43 C<method ss_family : int ()>
44  
45 Returns C<ss_family>.
46  
47 =head2 set_ss_family
48  
49 C<method set_ss_family : void ($family : int)>
50  
51 Sets C<ss_family>.
52  
53 =head2 size
54  
55 C<method size : int ()>
56  
57 Returns the size of C<struct sockaddr_storage>.
58  
59 =head2 clone
60  
61 C<method clone : L<Sys::Socket::Sockaddr::Storage|SPVM::Sys::Socket::Sockaddr::Storage> ();>
62  
63 Clones this instance and returns it.
64  
65 =head2 DESTROY
66  
67 C<method DESTROY : void ()>
68  
69 The destructor.
70 =head1 See Also
71  
72 =over 2
73  
74 =item * L<Sys::Socket::Sockaddr|SPVM::Sys::Socket::Sockaddr>
75  
76 =item * L<Sys|SPVM::Sys>
77  
78 =back
79  
80 =head1 Copyright & License
81  
82 Copyright (c) 2023 Yuki Kimoto
83  
84 MIT License
85