Name

SPVM::IO::Socket::INET6 - IPv6 Sockets

Usage

use IO::Socket::INET6;

my $host = "google.com";
my $port = 80;
my $io_socket = IO::Socket::INET6->new({
  PeerAddr => $host,
  PeerPort => $port
});

Description

The IO::Socket::INET6 class in SPVM has methods to create IPv6 Sockets.

Super Class

IO::Socket::IP

Class Methods

new

static method new : IO::Socket::IP ($options : object[] = undef);

Same as SPVM::IO::Socket::IP#new method, but the Domain option is set to the return value of Sys::Socket::Constant#AF_INET6 method.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License