The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::IO::Socket::IP::Import::IPv4 - Short Description

Description

The IO::Socket::IP::Import::IPv4 class in SPVM has methods to do someting.

Usage

  use IO::Socket::IP::Import::IPv4;

Interface Methods

sockname

method sockname : Sys::Socket::Sockaddr ();

An interface method to return the information containing the local address and port.

sockaddr

method sockaddr : Sys::Socket::In_addr_base ();

An interface method with a default implementation to return the local address.

The local address is a Sys::Socket::In_addr object.

sockhost

method sockhost : string ();

An interface method with a default implementation to return the local host name.

sockport

method sockport : int ();

An interface method with a default implementation to return the local port.

peername

method peername : Sys::Socket::Sockaddr ();

An interface method to return the information containing the remote address and port.

peeraddr

method peeraddr : Sys::Socket::In_addr_base ();

An interface method with a default implementation to return the remote address.

The remote address is a Sys::Socket::In_addr object.

peerhost

method peerhost : string ();

An interface method with a default implementation to return the remote host name.

peerport

method peerport : int ();

An interface method with a default implementation to return the remote port.

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License