Name

SPVM::Resource::SocketUtil - Resource for Socket Utilities

Description

Resource::SocketUtil class in SPVM is a resource for socket utilities.

Usage

MyClass.config:

my $config = SPVM::Builder::Config->new_gnu99(file => __FILE__);

$config->use_resource('Resource::SocketUtil');

if ($^O eq 'MSWin32') {
  $config->add_lib('wsock32', 'ws2_32');
}

$config;

MyClass.c:

# include "spvm_socket_util.h"

int32_t socket_errno = spvm_socket_errno();

Language

The C language

Language Specification

GNU C99

Required Libraries

  • wsock32 (Only in Windows)

  • ws2_32 (Only in Windows)

Header Files

Source Files

  • spvm_socket_util.c

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License