Name

SPVM::IO::Socket::Interface - IO::Socket Interface

Usage

use IO::Socket::Interface;

Description

IO::Socket::Interface provides IO::Socket interface.

Interface Methods

new_instance

method new_instance : IO::Socket ($options = undef : object[]);

fd

method fd : int ();

listen_backlog

method listen_backlog : int ();

timeout

method timeout : int ();

sockdomain

method sockdomain : int ();

socktype

method socktype : int ();

protocol

method protocol : int ();

peername

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

connect

method connect : int ($address : Sys::Socket::Sockaddr);

See also Sys::Socket::Sockaddr.

recv

method recv : int ($buffer : mutable string, $length = -1 : int, $flags = 0 : int);

send

method send : int ($buffer : string, $flags = 0 : int, $to = undef : Sys::Socket::Sockaddr);

See also Sys::Socket::Sockaddr.

close

method close : int ();

fileno

method fileno : int ();

opened

method opened : int ();

listen

method listen : int ($queue = 5 : int);

bind

method bind : int ($address : Sys::Socket::Sockaddr);

See also Sys::Socket::Sockaddr.

sockname

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

See also Sys::Socket::Sockaddr.

shutdown

method shutdown : int ($sockfd : int, $how : int);

atmark

method atmark : int ();

setsockopt

method setsockopt : int ($level : int, $optname : int, $optval : int);

getsockopt

method getsockopt : int ($level : int, $optname : int);

connected

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

See also Sys::Socket::Sockaddr.

socket

method socket : int ($domain : int, $type : int, $protocol = 0 : int);

socketpair

method socketpair : int[] ($domain : int, $type : int, $protocol : int);

accept

method accept : IO::Socket::Interface ($peer_ref = undef : Sys::Socket::Sockaddr[]);

See also Sys::Socket::Sockaddr.

See also IO::Socket::Builder.