Name
SPVM::IO::Socket::INET6 - IPv6 Sockets
Usage
use IO::Socket::INET6;
my $host = "google.com";
my $port = 80;
my $socket = IO::Socket::INET6->new({
PeerAddr => $host,
PeerPort => $port
});
Description
IO::Socket::INET6 class in SPVM represents a IPv6 Socket.
Super Class
Class Methods
new
static method new : IO::Socket::INET6 ($options : object[] = undef);
This method is the same as SPVM::IO::Socket::IP#new method, but the Domain
option is always set to AF_INET6
.
accept
method accept : IO::Socket::INET6 ($peer_ref : Sys::Socket::Sockaddr[] = undef);
This method is the same as accept method, but its return type is different.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License