Name

SPVM::IO::Socket::IP::Import::IPv4 - Importable Methods for IPv4.

Description

IO::Socket::IP::Import::IPv4 interface in SPVM provides importable methods for IPv4.

Usage

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

Interface Methods

sockname

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

Returns Sys::Socket::Sockaddr object containing a local address and a local port.

This method must be implemented by the class that declares this interface.

peername

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

Returns Sys::Socket::Sockaddr object containing a remote address and a local port.

This method must be implemented by the class that declares this interface.

sockaddr

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

Returns a local address.

The type of the returned object is Sys::Socket::In_addr.

sockhost

method sockhost : string ();

Returns a local host name.

sockport

method sockport : int ();

Returns a local port.

peeraddr

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

Returns a remote address.

The type of the returned object is Sys::Socket::In_addr.

peerhost

method peerhost : string ();

Returns a remote host name.

peerport

method peerport : int ();

Returns a remote port.

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License