| 1 | package SPVM::Sys::Socket::In_addr; | ||
| 2 | |||
| 3 | 1; | ||
| 4 | |||
| 5 | =head1 Name | ||
| 6 | |||
| 7 | SPVM::Sys::Socket::In_addr - struct in_addr in the C language | ||
| 8 | |||
| 9 | =head1 Description | ||
| 10 | |||
| 11 | Sys::Socket::In_addr class in L<SPVM> represents L<struct in_addr|https://linux.die.net/man/3/inet_network> in the C language. | ||
| 12 | |||
| 13 | =head1 Usage | ||
| 14 | |||
| 15 | use Sys::Socket::In_addr; | ||
| 16 | |||
| 17 | =head1 Details | ||
| 18 | |||
| 19 | This class is a pointer class. The pointer the instance has is set to a L<struct in_addr|https://linux.die.net/man/3/inet_network> object. | ||
| 20 | |||
| 21 | =head1 Super Class | ||
| 22 | |||
| 23 | L<Sys::Socket::In_addr_base|SPVM::Sys::Socket::In_addr_base> | ||
| 24 | |||
| 25 | =head1 Class Methods | ||
| 26 | |||
| 27 | =head2 new | ||
| 28 | |||
| 29 | C<static method new : L<Sys::Socket::In_addr|SPVM::Sys::Socket::In_addr> ();> | ||
| 30 | |||
| 31 | Creates a new L<Sys::Socket::In_addr|SPVM::Sys::Socket::In_addr> object. | ||
| 32 | |||
| 33 | =head1 Instance Methods | ||
| 34 | |||
| 35 | =head2 DESTROY | ||
| 36 | |||
| 37 | C<method DESTROY : void ();> | ||
| 38 | |||
| 39 | The destructor. | ||
| 40 | |||
| 41 | =head2 s_addr | ||
| 42 | |||
| 43 | C<method s_addr : int ();> | ||
| 44 | |||
| 45 | Returns C<s_addr>. | ||
| 46 | |||
| 47 | =head2 set_s_addr | ||
| 48 | |||
| 49 | C<method set_s_addr : void ($s_addr : int)> | ||
| 50 | |||
| 51 | Sets C<s_addr>. | ||
| 52 | |||
| 53 | =head1 See Also | ||
| 54 | |||
| 55 | =over 2 | ||
| 56 | |||
| 57 | =item * L<Sys|SPVM::Sys> | ||
| 58 | |||
| 59 | =back | ||
| 60 | |||
| 61 | =head1 Copyright & License | ||
| 62 | |||
| 63 | Copyright (c) 2023 Yuki Kimoto | ||
| 64 | |||
| 65 | MIT License | ||
| 66 |