SPVM::Resource::SocketUtil - Resource for Socket Utilities
SPVM::Resource::SocketUtil is a resource of SPVM for socket utilities.
MyClass.config:
my $config = SPVM::Builder::Config->new_c99(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();
The C language
C99
wsock32 (Only on Windows)
wsock32
ws2_32 (Only on Windows)
ws2_32
spvm_socket_util.h
spvm_socket_util.c
Yuki Kimoto kimoto.yuki@gmail.com
kimoto.yuki@gmail.com
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::Resource::SocketUtil, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::Resource::SocketUtil
CPAN shell
perl -MCPAN -e shell install SPVM::Resource::SocketUtil
For more information on module installation, please visit the detailed CPAN module installation guide.