Sys/Socket/Addrinfo.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::Addrinfo;
2  
3 1;
4  
5 =head1 Name
6  
7 SPVM::Sys::Socket::Addrinfo - struct addrinfo in the C language
8  
9 =head1 Description
10  
11 Sys::Socket::Addrinfo class in L<SPVM> represents L<struct addrinfo|https://linux.die.net/man/3/getaddrinfo> in the C language.
12  
13 =head1 Usage
14  
15 use Sys::Socket::Addrinfo;
16  
17 =head1 Details
18  
19 This class is a pointer class. The pointer the instance has is set to a L<struct addrinfo|https://linux.die.net/man/3/getaddrinfo> object.
20  
21 =head1 Class Methods
22  
23 =head2 new
24  
25 C<method new : L<Sys::Socket::Addrinfo|SPVM::Sys::Socket::Addrinfo> ();>
26  
27 Create a new L<Sys::Socket::Addrinfo|SPVM::Sys::Socket::Addrinfo> object.
28  
29 =head1 Instance Methods
30  
31 =head2 DESTROY
32  
33 C<method DESTROY : void ();>
34  
35 The destructor.
36  
37 =head2 ai_flags
38  
39 C<method ai_flags : int ();>
40  
41 Returns C<ai_flags>.
42  
43 =head2 set_ai_flags
44  
45 C<method set_ai_flags : void ($ai_flags : int);>
46  
47 Sets C<ai_flags>.
48  
49 =head2 ai_family
50  
51 C<method ai_family : int ();>
52  
53 Returns C<ai_family>.
54  
55 =head2 set_ai_family
56  
57 C<method set_ai_family : void ($ai_family : int);>
58  
59 Sets C<ai_family>.
60  
61 =head2 ai_socktype
62  
63 C<method ai_socktype : int ();>
64  
65 Returns C<ai_socktype>.
66  
67 =head2 set_ai_socktype
68  
69 C<method set_ai_socktype : void ($ai_socktype : int);>
70  
71 Sets C<ai_socktype>.
72  
73 =head2 ai_protocol
74  
75 C<method ai_protocol : int ();>
76  
77 Returns C<ai_protocol>.
78  
79 =head2 set_ai_protocol
80  
81 C<method set_ai_protocol : void ($ai_protocol : int);>
82  
83 Sets C<ai_protocol>.
84  
85 =head2 ai_addr
86  
87 C<method ai_addr : L<Sys::Socket::Sockaddr|SPVM::Sys::Socket::Sockaddr> ();>
88  
89 Copies C<ai_addr> and returns it.
90  
91 =head2 ai_canonname
92  
93 C<method ai_canonname : string ();>
94  
95 Copies C<ai_canonname> and returns it.
96  
97 =head1 See Also
98  
99 =over 2
100  
101 =item * L<Sys|SPVM::Sys>
102  
103 =back
104  
105 =head1 Copyright & License
106  
107 Copyright (c) 2023 Yuki Kimoto
108  
109 MIT License
110