Changes for version 0.207 - 2023-09-04

  • Prerequirement Changes
    • Require SPVM::Sys 0.486.
    • Require SPVM 0.989040.
  • New Features
    • The IO::Socket::UNIX class is added.
  • Changes
    • The implementation of fileno method is improved.
  • Incompatibe Changes
    • input_output_number is incremented.
    • The following fields and methods in the IO::Socket class are added, deleted, or changed.
      • has timeout : protected ro int;
      • has Timeout : protected int;
      • method timeout : int ();
      • has sockdomain : protected ro int;
      • has Domain : protected int;
      • method sockdomain : int ();
      • has socktype : protected ro int;
      • has Type : protected int;
      • method socktype : int ();
      • has protocol : protected ro int;
      • has Proto : protected ro int;
      • method protocol : int ();
      • has listen_backlog : protected int;
      • has Listen : protected int;
      • method peerport : int ();
      • method peerhost : string ();
      • has peername : protected ro Sys::Socket::Sockaddr;
      • has peername : protected Sys::Socket::Sockaddr;
      • method peername : Sys::Socket::Sockaddr ();
    • The following fields and methods in the IO::File class are added, deleted, or changed.
      • method input_line_number : long ();
      • method set_input_line_number : void ($input_line_number : long);
      • method truncate : int ($legnth : long);
      • method stat : Sys::IO::Stat ();
      • method sync : int ();
      • method opened : int ();
    • The following fields and methods in the IO::Handle class are added, deleted, or changed.
      • method blocking : void ($blocking : int);
      • method blocking : int ();
      • method set_blocking : void ($blocking : int);
      • has blocking_flag : rw protected int;
      • has nonblocking : protected int;
      • has opened : ro protected int;
      • method opened : int ();
      • method truncate : int ($legnth : long) throws an exception.
      • method sync : int () throws an exception.
      • method stat : int ($stat : Sys::IO::Stat);
      • method stat : Sys::IO::Stat ();
    • fd field in IO::Socket class is moved to IO::Handle class.
    • write method in IO::Socket class call syswrite method.
    • read method in IO::Socket class call sysread method.
    • print method calls write method.

Modules

File IO, Socket, Select/Polling.
File Input/Output
I/O Handling
Socket Communications
Short Description