Changes for version 0.07 - 2022-09-29
- Changes
- The inet_aton method in the Sys::Socket class is emulated using inet_pton on Windows.
- Ineffective Changes
- Sys::Socket::Constant->SHUT_RD always return 0.
- Sys::Socket::Constant->SHUT_WR always return 1.
- Sys::Socket::Constant->SHUT_RDWR always return 2.
- New Features
- Added the sizeof method in the Sys::Socket::Sockaddr.
- method sizeof : int ()
- Added the size method in the Sys::Socket::Sockaddr::Interface.
- method sizeof : int ()
- Added the size method in the Sys::Socket::Sockaddr::In.
- method sizeof : int ()
- Added the size method in the Sys::Socket::Sockaddr::In6.
- method sizeof : int ()
- Added the size method in the Sys::Socket::Sockaddr::Un.
- method sizeof : int ()
- Added the size method in the Sys::Socket::Sockaddr::Strage.
- method sizeof : int ()
- Added the s_addr and set_s_addr methods to the Sys::In_addr class.
- method s_addr : int ();
- method set_s_addr : void ($s_addr : int);
- Added the s6_addr and set_s6_addr methods to the Sys::In6_addr class.
- method s6_addr : string ();
- method set_s6_addr : void ($address : string);
- Add Sys::Socket::Error::InetInvalidNetworkAddress.
- Added the sizeof method in the Sys::Socket::Sockaddr.
- Test Improvement
- Added the test of the exit method in the Sys::Process class on Windows.
- Added the test of the execv method in the Sys::Process class on Windows.
- Bug Fix With Incompative Changes
- Fixed the bug that the definitions of the sin_family and set_sin_family method in the Sys::Socket::Sockaddr::In were wrong.
- Before
- method sin_family : int () method set_sin_family : void ()
- After
- method sin_family : byte () method set_sin_family : void ($family : byte)
- Before
- Fixed the bug that the definitions of the sin6_family and set_sin6_family method in the Sys::Socket::Sockaddr::In6 were wrong.
- Before
- method sin6_family : int () method set_sin6_family : void ()
- After
- method sin6_family : byte () method set_sin6_family : void ($family : byte)
- Before
- Fixed the bug that the definitions of the sun_family and set_sun_family method in the Sys::Socket::Sockaddr::Un were wrong.
- Before
- method sun_family : int () method set_sun_family : void ()
- After
- method sun_family : byte () method set_sun_family : void ($family : byte)
- Before
- Fixed the bug that the definitions of the ss_family and set_ss_family method in the Sys::Socket::Sockaddr::Storage were wrong.
- Before
- method ss_family : int () method set_ss_family : void ()
- After
- method ss_family : byte () method set_ss_family : void ($family : byte)
- Before
- Fixed the bug that the definitions of the sa_family method in the Sys::Socket::Sockaddr and its child classes and the interface were wrong.
- Before
- method sa_family : int ()
- After
- method sa_family : byte ()
- Before
- Fixed the bug that the definitions of the sin_family and set_sin_family method in the Sys::Socket::Sockaddr::In were wrong.
- Bug Fix
- Fixed the bug that the socket_strerror method in the Sys::Socket class didn't work well.
- Test Fix
- Fixed the test of the times method in the Sys::Process class.
- Document Improvement
- Add the doc of the Sys::Socket::Sockaddr class.
- Add the doc of the Sys::Socket::Sockaddr::Interface class.
- Incompative Changes
- The inet_ntop method in Sys::Socket throw an exception if the address family is not AF_INET and AF_INET6.
- The inet_pton method in Sys::Socket throw an exception if the address family is not AF_INET and AF_INET6.
- The inet_ntop and inet_pton method in Sys::Socket throw an exception with Sys::Socket::Error::InetInvalidNetworkAddress if the address is an invalid network address.
- The inet_ntoa method in Sys::Socket throw an exception if inet_ntoa failed.
- The set_sin6_addr method in Sys::Socket::Sockaddr::In6 throw an exception if the address is not defined.
- The set_sin_addr method in Sys::Socket::Sockaddr::In throw an exception if the address is not defined.
- Internall Uneffective Changes
- Rename the has_interface in the class Sys::Socket::Sockaddr::Interface to has_interfaces.
- Rename the has_interface in the class Sys::Socket::Sockaddr to has_interfaces.
Documentation
get, unpack build and install modules from CPAN
Modules
System Calls such as File IO, User, Process, Socket,
File Tests
IO System Call
Constant values for IO.
the class for the DIR type in C language.
struct dirent in C language
the class for the FILE type in C language.
struct flock in C language
Array of struct pollfd in C language
struct stat in C language
struct utimbuf in C language
Process System Call
Sys::Process::Constant is a SPVM module
Sys::Process::Tms is a SPVM module
Socket System Call
struct addrinfo in C language
Socket Constant Values
The address is not a valid network address.
struct in6_addr in C language
struct in_addr in C language
struct ip_mreq in C language
struct ip_mreq_source in C language
struct ipv6_mreq in C language
struct sockaddr in C language
struct sockaddr_in in C language
struct sockaddr_in6 in C language
Interface for Sys::Socket::Sockaddr
struct sockaddr_storage in C language
struct sockaddr_un in C language
User System Call
Entry of Group Database
Entry of Password Database