Changes for version 0.217 - 2023-06-01
- New Features
- Add IO::Socket#sendto method.
- Add IO::Socket#recvfrom method.
- Test Improvement
- Add tests for IO::Select using a test HTTP server.
- Incompatible Changes
- Remove an argument of IO::Socket#shutdown method.
- Before
- method shutdown : void ($sockfd : int, $how : int);
- After
- method shutdown : void ($how : int);
- Before
- IO::Socket#close method throw an excetpion if the socket is not opened.
- Remove IO::Socket#peername field. The return value of peername method is not cached.
- Remove the argument $to of IO::Socket#send method.
- Before
- method send : int ($buffer : string, $flags : int = 0, $to : Sys::Socket::Sockaddr = undef, $length : int = -1, $buf_offset : int = 0);
- After
- method send : int ($buffer : string, $flags : int = 0, $length : int = -1, $buf_offset : int = 0);
- Before
- Remove an argument of IO::Socket#shutdown method.
- Changes
- The following method in IO::Socket class becomes public.
- socket connect listen bind accept
- The following method in IO::Socket class becomes public.
- Requirement Changes
- Require SPVM::Sys 0.517.
Modules
File IO, Sockets, Select/Polling.
Directory Streams
File IO
I/O Handling
poll system call
select System Call
Sockets
IPv4 Sockets
IPv6 Sockets
IPv4/IPv6 Sockets
Short Description
IPv6 Information
Short Description