blib/lib/SPVM/Resource/SocketUtil.pm

filter: Statementstmt 100% 2 / 2 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 2 / 2 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary
1 package SPVM::Resource::SocketUtil;
2  
3 1 our $VERSION = "1.007";
4  
5 1 1;
6  
7 =head1 Name
8  
9 SPVM::Resource::SocketUtil - Resource for Socket Utilities
10  
11 =head1 Description
12  
13 Resource::SocketUtil class in L<SPVM> is a L<resource|SPVM::Document::Resource> class for socket utilities.
14  
15 =head1 Usage
16  
17 MyClass.config:
18
19 my $config = SPVM::Builder::Config->new_c99;
20
21 $config->use_resource('Resource::SocketUtil');
22
23 if ($^O eq 'MSWin32') {
24 $config->add_lib('wsock32', 'ws2_32');
25 }
26
27 $config;
28  
29 MyClass.c:
30
31 # include "spvm_socket_util.h"
32
33 int32_t socket_errno = spvm_socket_errno();
34  
35 =head1 Language
36  
37 The C language
38  
39 =head1 Language Standard
40  
41 C99
42  
43 =head1 Required Libraries
44  
45 =over 2
46  
47 =item * C<wsock32> (Only in Windows)
48  
49 =item * C<ws2_32> (Only in Windows)
50  
51 =back
52  
53 =head1 Header Files
54  
55 =over 2
56  
57 =item * L<spvm_socket_util.h|https://metacpan.org/dist/SPVM-Resource-SocketUtil/source/lib/SPVM/Resource/SocketUtil.native/include/spvm_socket_util.h>
58  
59 =back
60  
61 =head1 Source Files
62  
63 =over 2
64  
65 =item * C<spvm_socket_util.c>
66  
67 =back
68  
69 =head1 Author
70  
71 Yuki Kimoto C<kimoto.yuki@gmail.com>
72  
73 =head1 Copyright & License
74  
75 Copyright (c) 2023 Yuki Kimoto
76  
77 MIT License
↑ Summary