Sys/Socket/Sockaddr/Un.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::Un;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Socket::Sockaddr::Un - struct sockaddr_un in the C language
8  
9 =head1 Description
10  
11 Sys::Socket::Sockaddr::Un class in L<SPVM> represents L<struct sockaddr_un|https://linux.die.net/man/7/unix> in the C language.
12  
13 =head1 Usage
14  
15 use Sys::Socket::Sockaddr::Un;
16  
17 =head1 Details
18  
19 This class is a pointer class. The pointer the instance has is set to a L<struct sockaddr_un|https://linux.die.net/man/7/unix> 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::Un|SPVM::Sys::Socket::Sockaddr::Un> ();>
30  
31 Creates a new L<Sys::Socket::Sockaddr::Un|SPVM::Sys::Socket::Sockaddr::Un> 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 sun_family
42  
43 C<method sun_family : int ();>
44  
45 Returns C<sun_family>.
46  
47 =head2 set_sun_family
48  
49 C<method set_sun_family : void ($family : int)>
50  
51 Sets C<sun_family>.
52  
53 =head2 sun_path
54  
55 C<method sun_path : string ();>
56  
57 Copies C<sun_path> and returns it.
58  
59 =head2 set_sun_path
60  
61 C<method set_sun_path : void ($path : string)>
62  
63 Sets C<sun_path>.
64  
65 =head2 size
66  
67 C<method size : int ()>
68  
69 Returns the size of C<struct sockaddr_un>.
70  
71 =head2 clone
72  
73 C<method clone : L<Sys::Socket::Sockaddr::Un|SPVM::Sys::Socket::Sockaddr::Un> ();>
74  
75 Clones this instance and returns it.
76  
77 =head2 DESTROY
78  
79 C<method DESTROY : void ();>
80  
81 The destructor.
82  
83 =head1 See Also
84  
85 =over 2
86  
87 =item * L<Sys::Socket::Sockaddr|SPVM::Sys::Socket::Sockaddr>
88  
89 =item * L<Sys|SPVM::Sys>
90  
91 =back
92  
93 =head1 Copyright & License
94  
95 Copyright (c) 2023 Yuki Kimoto
96  
97 MIT License
98