Sys/Socket/Sockaddr/In6.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::In6;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Socket::Sockaddr::In6 - struct sockaddr_in6 in the C language
8  
9 =head1 Usage
10  
11 use Sys::Socket::Sockaddr::In6;
12  
13 =head1 Description
14  
15 Sys::Socket::Sockaddr::In6 class in L<SPVM> represents L<struct sockaddr_in6|https://linux.die.net/man/7/ipv6> in the C language.
16  
17 =head1 Details
18  
19 This class is a pointer class. The pointer the instance has is set to a L<struct sockaddr_in6|https://linux.die.net/man/7/ipv6> 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::In6|SPVM::Sys::Socket::Sockaddr::In6> ();>
30  
31 Create a new L<Sys::Socket::Sockaddr::In6|SPVM::Sys::Socket::Sockaddr::In6> 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 sin6_family
42  
43 C<method sin6_family : int ();>
44  
45 Returns C<sin6_family>.
46  
47 =head2 set_sin6_family
48  
49 C<method set_sin6_family : void ($family : int)>
50  
51 Sets C<sin6_family>.
52  
53 =head2 sin6_flowinfo
54  
55 C<method sin6_flowinfo : int ()>
56  
57 Returns C<sin6_flowinfo>.
58  
59 =head2 set_sin6_flowinfo
60  
61 C<method set_sin6_flowinfo : void ($flowinfo : int)>
62  
63 Sets C<sin6_flowinfo>.
64  
65 =head2 sin6_scope_id
66  
67 C<method sin6_scope_id : int ();>
68  
69 Returns C<sin6_scope_id>.
70  
71 =head2 set_sin6_scope_id
72  
73 C<method set_sin6_scope_id : void ($scope_id : int)>
74  
75 Sets C<sin6_scope_id>.
76  
77 =head2 sin6_addr
78  
79 C<method sin6_addr : L<Sys::Socket::In6_addr|SPVM::Sys::Socket::In6_addr> ();>
80  
81 Copies C<sin6_addr> and returns it.
82  
83 =head2 set_sin6_addr
84  
85 C<method set_sin6_addr : void ($address : L<Sys::Socket::In6_addr|SPVM::Sys::Socket::In6_addr>);>
86  
87 Sets C<sin6_addr>.
88  
89 Exceptions:
90  
91 The address must be defined. Otherwise an exception is thrown.
92  
93 =head2 sin6_port
94  
95 C<method sin6_port : int ();>
96  
97 Returns C<sin6_port>.
98  
99 =head2 set_sin6_port
100  
101 C<method set_sin6_port : void ($port : int);>
102  
103 Sets C<sin6_port>.
104  
105 =head2 size
106  
107 C<method size : int ()>
108  
109 Returns the size of C<struct sockaddr_in6>.
110  
111 =head2 clone
112  
113 C<method clone : L<Sys::Socket::Sockaddr::In6|SPVM::Sys::Socket::Sockaddr::In6> ();>
114  
115 Clones this instance and returns it.
116  
117 =head2 DESTROY
118  
119 C<method DESTROY : void ()>
120  
121 The destructor.
122  
123 =head1 See Also
124  
125 =over 2
126  
127 =item * L<Sys::Socket::Sockaddr|SPVM::Sys::Socket::Sockaddr>
128  
129 =item * L<Sys|SPVM::Sys>
130  
131 =back
132  
133 =head1 Copyright & License
134  
135 Copyright (c) 2023 Yuki Kimoto
136  
137 MIT License
138