opcua 0.10 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cert/cert.h +52 -52
- data/cert/cert_key.h +99 -99
- data/example/server_deep.rb +22 -0
- data/ext/opcua/server/server.c +31 -23
- data/opcua.gemspec +1 -1
- metadata +4 -5
- data/example/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cab4d6348a176ca8f697db2916e7451ee9bb01c991fedd8ccb68971331786d63
|
4
|
+
data.tar.gz: 8325b9b4204e0b09deae8a947cb9f9e8b80cda80fc40cbd0dd7a7df008bf7b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3eb825158fa7898e4a10693884490d8b020a1f05b124ec69df36992997d421cdcae34c940f674b796a409111b3163d31c815d825608fd6ec2b798b2ac9b340
|
7
|
+
data.tar.gz: 991cc08284e6200ff8a194c66bd41827c04adb1dc4d502330a0e55eb689dd04b864933eb6604f0c0ffd3393fcd21bfae19f620eb9092228ce4ae6dfaec9678f9
|
data/cert/cert.h
CHANGED
@@ -1,70 +1,70 @@
|
|
1
1
|
unsigned char cert_der[] = {
|
2
2
|
0x30, 0x82, 0x03, 0x18, 0x30, 0x82, 0x02, 0x00, 0xa0, 0x03, 0x02, 0x01,
|
3
|
-
0x02, 0x02, 0x14,
|
4
|
-
|
3
|
+
0x02, 0x02, 0x14, 0x61, 0xca, 0x6f, 0x41, 0xcd, 0x4f, 0x70, 0x30, 0x72,
|
4
|
+
0xe2, 0x6c, 0xdd, 0xc2, 0xf8, 0xcc, 0x0c, 0x8f, 0x63, 0xef, 0xa9, 0x30,
|
5
5
|
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b,
|
6
6
|
0x05, 0x00, 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04,
|
7
7
|
0x03, 0x0c, 0x0a, 0x72, 0x75, 0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75,
|
8
|
-
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x30,
|
9
|
-
|
10
|
-
|
8
|
+
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x30, 0x36, 0x30, 0x33, 0x31,
|
9
|
+
0x35, 0x35, 0x32, 0x34, 0x31, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x35,
|
10
|
+
0x32, 0x33, 0x31, 0x35, 0x35, 0x32, 0x34, 0x31, 0x5a, 0x30, 0x15, 0x31,
|
11
11
|
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0a, 0x72, 0x75,
|
12
12
|
0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75, 0x61, 0x30, 0x82, 0x01, 0x22,
|
13
13
|
0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
|
14
14
|
0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a,
|
15
|
-
0x02, 0x82, 0x01, 0x01, 0x00,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
15
|
+
0x02, 0x82, 0x01, 0x01, 0x00, 0x9e, 0x7b, 0x64, 0xb9, 0x48, 0xef, 0xe9,
|
16
|
+
0x40, 0x87, 0x7a, 0xc6, 0xab, 0x79, 0x68, 0xa8, 0x31, 0x97, 0xce, 0x67,
|
17
|
+
0x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99, 0x4c,
|
31
|
+
0x05, 0x7a, 0xa2, 0xec, 0x49, 0x71, 0x84, 0xdd, 0xed, 0x06, 0x48, 0xfa,
|
32
|
+
0x73, 0xc9, 0xa9, 0x13, 0x8f, 0xfd, 0x02, 0x2b, 0xd6, 0x18, 0x79, 0x1e,
|
33
|
+
0x28, 0xc4, 0x54, 0x37, 0xe7, 0xa3, 0xc8, 0xeb, 0x82, 0x09, 0xff, 0x5e,
|
34
|
+
0xb0, 0xba, 0xb9, 0x93, 0x62, 0x5b, 0x36, 0x8b, 0x47, 0xb9, 0x0b, 0xf5,
|
35
|
+
0xce, 0x2d, 0x47, 0x38, 0xc0, 0x12, 0x18, 0x7e, 0x24, 0x21, 0xa8, 0x77,
|
36
|
+
0xc6, 0xa9, 0xc9, 0xd9, 0xdc, 0x10, 0xde, 0x77, 0x71, 0x02, 0x03, 0x01,
|
37
37
|
0x00, 0x01, 0xa3, 0x60, 0x30, 0x5e, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d,
|
38
|
-
0x0e, 0x04, 0x16, 0x04, 0x14,
|
39
|
-
|
40
|
-
|
38
|
+
0x0e, 0x04, 0x16, 0x04, 0x14, 0x5f, 0xbd, 0x00, 0x8b, 0x6d, 0xd5, 0x70,
|
39
|
+
0x21, 0x46, 0x03, 0x85, 0x64, 0xd9, 0x17, 0x2b, 0x2e, 0x84, 0x2c, 0x0d,
|
40
|
+
0x9d, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04,
|
41
41
|
0x05, 0x30, 0x03, 0x01, 0x01, 0xff, 0x30, 0x1c, 0x06, 0x03, 0x55, 0x1d,
|
42
42
|
0x11, 0x04, 0x15, 0x30, 0x13, 0x86, 0x11, 0x72, 0x75, 0x62, 0x79, 0x2d,
|
43
43
|
0x6f, 0x70, 0x63, 0x75, 0x61, 0x3a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
44
44
|
0x30, 0x0e, 0x06,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a6, 0xe4, 0xd3, 0xa5,
|
56
|
+
0xa1, 0x3e, 0x70, 0x51, 0x5a, 0x6a, 0xe1, 0x00, 0x95, 0x3d, 0xa1, 0x26,
|
57
|
+
0xf0, 0x83, 0x4c, 0x46, 0x27, 0xe9, 0x38, 0x58, 0x1e, 0xc8, 0x60, 0x4f,
|
58
|
+
0x7d, 0x2c, 0xab, 0xde, 0x4b, 0x90, 0xb4, 0xf1, 0xaa, 0x31, 0x6b, 0x58,
|
59
|
+
0x02, 0x9b, 0x50, 0xc6, 0xa8, 0x75, 0x3a, 0x9c, 0x61, 0xba, 0x96, 0x8d,
|
60
|
+
0x5a, 0xb8, 0x20, 0xf3, 0x76, 0xa3, 0x66, 0x23, 0x04, 0xc0, 0xd4, 0x02,
|
61
|
+
0x44, 0x66, 0x7a, 0x4c, 0x3f, 0x6a, 0xab, 0x3f, 0x90, 0x77, 0x08, 0x28,
|
62
|
+
0x12, 0x15, 0xa2, 0x21, 0x8b, 0xa4, 0x4b, 0x17, 0xf0, 0xa8, 0x93, 0xb5,
|
63
|
+
0xef, 0xbe, 0xb2, 0x58, 0x00, 0xa0, 0x18, 0x3c, 0xfd, 0xaa, 0xce, 0x55,
|
64
|
+
0x4a, 0x09, 0xf1, 0x49, 0xfa, 0x4b, 0x2f, 0x35, 0xef, 0xc8, 0xee, 0xa0,
|
65
|
+
0xdc, 0x33, 0x55, 0x26, 0x6e, 0x81, 0x92, 0xc2, 0x1b, 0x35, 0x0c, 0x70,
|
66
|
+
0xaa, 0xaf, 0x70, 0x5e, 0x05, 0x8e, 0xd4, 0x8b, 0x06, 0xc6, 0x2c, 0x0f,
|
67
|
+
0x43, 0x72, 0x6d, 0x31, 0x43, 0x76, 0x0d, 0x06, 0xd9, 0xf5, 0x49, 0xdc,
|
68
|
+
0x38, 0x41, 0xd3, 0x4e
|
69
69
|
};
|
70
70
|
unsigned int cert_der_len = 796;
|
data/cert/cert_key.h
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
unsigned char cert_key_der[] = {
|
2
2
|
0x30, 0x82, 0x04, 0xa3, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00,
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
0x00,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
0x68,
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
3
|
+
0x9e, 0x7b, 0x64, 0xb9, 0x48, 0xef, 0xe9, 0x40, 0x87, 0x7a, 0xc6, 0xab,
|
4
|
+
0x79, 0x68, 0xa8, 0x31, 0x97, 0xce, 0x67, 0xe0, 0xd0, 0xfe, 0x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x05, 0x7a, 0xa2, 0xec, 0x49,
|
19
|
+
0x71, 0x84, 0xdd, 0xed, 0x06, 0x48, 0xfa, 0x73, 0xc9, 0xa9, 0x13, 0x8f,
|
20
|
+
0xfd, 0x02, 0x2b, 0xd6, 0x18, 0x79, 0x1e, 0x28, 0xc4, 0x54, 0x37, 0xe7,
|
21
|
+
0xa3, 0xc8, 0xeb, 0x82, 0x09, 0xff, 0x5e, 0xb0, 0xba, 0xb9, 0x93, 0x62,
|
22
|
+
0x5b, 0x36, 0x8b, 0x47, 0xb9, 0x0b, 0xf5, 0xce, 0x2d, 0x47, 0x38, 0xc0,
|
23
|
+
0x12, 0x18, 0x7e, 0x24, 0x21, 0xa8, 0x77, 0xc6, 0xa9, 0xc9, 0xd9, 0xdc,
|
24
|
+
0x10, 0xde, 0x77, 0x71, 0x02, 0x03, 0x01, 0x00, 0x01, 0x02, 0x82, 0x01,
|
25
|
+
0x00, 0x76, 0x70, 0x5d, 0x3c, 0x23, 0x88, 0x38, 0x57, 0xa3, 0x68, 0x5c,
|
26
|
+
0x25, 0x36, 0x5c, 0xc2, 0xa6, 0x1d, 0x7f, 0x82, 0x1e, 0x7f, 0xd2, 0x80,
|
27
|
+
0x9a, 0x36, 0x65, 0x6c, 0x3b, 0x9e, 0x60, 0xf9, 0xb9, 0xff, 0x42, 0x6b,
|
28
|
+
0xe2, 0xa3, 0x21, 0x01, 0x3c, 0x18, 0x94, 0xa1, 0xd1, 0x03, 0xb9, 0xad,
|
29
|
+
0x70, 0x5e, 0x2c, 0x02, 0x83, 0x96, 0x42, 0x7f, 0x82, 0x5c, 0xc7, 0xb3,
|
30
|
+
0xed, 0xa9, 0xaa, 0xb3, 0x11, 0x74, 0xfe, 0x03, 0x86, 0x08, 0xda, 0xb8,
|
31
|
+
0x5c, 0x79, 0x62, 0xc4, 0x47, 0x4b, 0x21, 0x56, 0x3f, 0x6c, 0xe2, 0xed,
|
32
|
+
0x1a, 0x38, 0x7a, 0xad, 0xb0, 0x52, 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102
|
};
|
103
103
|
unsigned int cert_key_der_len = 1191;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require_relative '../lib/opcua/server'
|
3
|
+
|
4
|
+
Daemonite.new do
|
5
|
+
server = OPCUA::Server.new
|
6
|
+
server.add_namespace "https://centurio.work/kelch"
|
7
|
+
|
8
|
+
mt = server.types.add_object_type(:MeasurementType).tap{ |t|
|
9
|
+
t.add_variable :SollWertX
|
10
|
+
t.add_variable :SollWertY
|
11
|
+
t.add_variable :SollWertZ
|
12
|
+
}
|
13
|
+
tt = server.types.add_object_type(:ToolType).tap{ |t|
|
14
|
+
t.add_object :M, mt, OPCUA::MANDATORY
|
15
|
+
}
|
16
|
+
|
17
|
+
tools = server.objects.manifest(:KalimatC34, tt)
|
18
|
+
|
19
|
+
run do
|
20
|
+
sleep server.run
|
21
|
+
end
|
22
|
+
end.loop!
|
data/ext/opcua/server/server.c
CHANGED
@@ -288,6 +288,32 @@ static VALUE node_add_variable_rw(int argc, VALUE* argv, VALUE self) { //{{{
|
|
288
288
|
return node_add_variable_wrap(argc,argv,self,UA_ACCESSLEVELMASK_READ | UA_ACCESSLEVELMASK_WRITE,true);
|
289
289
|
} //}}}
|
290
290
|
|
291
|
+
static void node_add_object_ua_rec(UA_NodeId n, UA_LocalizedText dn, UA_QualifiedName qn, node_struct *parent, node_struct *datatype, UA_NodeId cid, UA_NodeIteratorCallback callback, void *handle) { //{{{
|
292
|
+
UA_ObjectAttributes oAttr = UA_ObjectAttributes_default;
|
293
|
+
oAttr.displayName = dn;
|
294
|
+
UA_Server_addNode_begin(parent->master->master,
|
295
|
+
UA_NODECLASS_OBJECT,
|
296
|
+
n,
|
297
|
+
parent->id,
|
298
|
+
UA_NODEID_NUMERIC(0, UA_NS0ID_HASCOMPONENT),
|
299
|
+
qn,
|
300
|
+
datatype->id,
|
301
|
+
(const UA_NodeAttributes*)&oAttr,
|
302
|
+
&UA_TYPES[UA_TYPES_OBJECTATTRIBUTES],
|
303
|
+
NULL,
|
304
|
+
NULL);
|
305
|
+
|
306
|
+
// printf("---->\n");
|
307
|
+
UA_Server_forEachChildNodeCall(parent->master->master, cid, callback, handle);
|
308
|
+
// printf("<----\n");
|
309
|
+
|
310
|
+
UA_Server_addNode_finish(parent->master->master,n);
|
311
|
+
UA_Server_addReference(parent->master->master,
|
312
|
+
n,
|
313
|
+
UA_NODEID_NUMERIC(0, UA_NS0ID_HASMODELLINGRULE),
|
314
|
+
UA_EXPANDEDNODEID_NUMERIC(0, UA_NS0ID_MODELLINGRULE_MANDATORY),
|
315
|
+
true);
|
316
|
+
} //}}}
|
291
317
|
static UA_NodeId node_add_object_ua(UA_Int32 type, UA_NodeId n, UA_LocalizedText dn, UA_QualifiedName qn, node_struct *parent, node_struct *datatype, VALUE ref) { //{{{
|
292
318
|
UA_ObjectAttributes oAttr = UA_ObjectAttributes_default;
|
293
319
|
oAttr.displayName = dn;
|
@@ -441,14 +467,13 @@ static UA_StatusCode node_manifest_iter(UA_NodeId child_id, UA_Boolean is_invers
|
|
441
467
|
node_get_reference(parent->master->master, child_id, &typeid);
|
442
468
|
|
443
469
|
node_struct *thetype = node_alloc(parent->master,typeid);
|
444
|
-
node_struct *downnode = node_alloc(parent->master,node_add_object_ua(UA_NS0ID_MODELLINGRULE_MANDATORY,UA_NODEID_STRING(parent->master->default_ns,buffer),dn,qn,newnode,thetype,Qtrue));
|
445
470
|
|
471
|
+
UA_NodeId n = UA_NODEID_STRING(parent->master->default_ns,buffer);
|
472
|
+
node_struct *downnode = node_alloc(parent->master,n);
|
446
473
|
node_struct *newparent = node_alloc(parent->master,child_id);
|
447
474
|
node_struct *downhandle[2] = { newparent, downnode };
|
448
475
|
|
449
|
-
|
450
|
-
UA_Server_forEachChildNodeCall(parent->master->master, child_id, node_manifest_iter, (void *)downhandle);
|
451
|
-
// printf("<----\n");
|
476
|
+
node_add_object_ua_rec(UA_NODEID_STRING(parent->master->default_ns,buffer),dn,qn,newnode,thetype,child_id,node_manifest_iter,(void *)downhandle);
|
452
477
|
|
453
478
|
free(thetype);
|
454
479
|
free(downnode);
|
@@ -507,29 +532,12 @@ static VALUE node_manifest(VALUE self, VALUE name, VALUE parent) { //{{{
|
|
507
532
|
nidstr = strnautocat(nidstr,nstr,strlen(nstr));
|
508
533
|
|
509
534
|
UA_NodeId n = UA_NODEID_STRING(ns->master->default_ns, nidstr);
|
510
|
-
|
511
|
-
UA_ObjectAttributes oAttr = UA_ObjectAttributes_default;
|
512
|
-
oAttr.displayName = UA_LOCALIZEDTEXT("en-US", nstr);
|
513
|
-
|
514
|
-
UA_Server_addNode_begin(ns->master->master,
|
515
|
-
UA_NODECLASS_OBJECT,
|
516
|
-
n,
|
517
|
-
ns->id,
|
518
|
-
UA_NODEID_NUMERIC(0, UA_NS0ID_HASCOMPONENT),
|
519
|
-
UA_QUALIFIEDNAME(ns->master->default_ns, nstr),
|
520
|
-
ts->id,
|
521
|
-
(const UA_NodeAttributes*)&oAttr,
|
522
|
-
&UA_TYPES[UA_TYPES_OBJECTATTRIBUTES],
|
523
|
-
NULL,
|
524
|
-
NULL);
|
525
|
-
|
526
535
|
node_struct *ret = node_alloc(ns->master,n);
|
527
536
|
node_struct *handle[2] = { ts, ret };
|
528
|
-
UA_Server_forEachChildNodeCall(ns->master->master, ts->id, node_manifest_iter, (void *)handle);
|
529
537
|
|
530
|
-
|
538
|
+
node_add_object_ua_rec(n,UA_LOCALIZEDTEXT("en-US", nstr),UA_QUALIFIEDNAME(ns->master->default_ns, nstr),ns,ts,ts->id,node_manifest_iter,(void *)handle);
|
531
539
|
|
532
|
-
|
540
|
+
return Data_Wrap_Struct(CLASS_OF(self), NULL, node_free, ret);
|
533
541
|
} //}}}
|
534
542
|
|
535
543
|
static VALUE node_find(VALUE self, VALUE qname) { //{{{
|
data/opcua.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "opcua"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.11"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby elegance, simplicity, and productivity."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opcua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.11'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemonite
|
@@ -76,8 +76,8 @@ files:
|
|
76
76
|
- example/client_method.rb
|
77
77
|
- example/client_subscription.rb
|
78
78
|
- example/kelch.KMT
|
79
|
-
- example/server.pid
|
80
79
|
- example/server.rb
|
80
|
+
- example/server_deep.rb
|
81
81
|
- example/test.rb
|
82
82
|
- ext/opcua/client/client.c
|
83
83
|
- ext/opcua/client/client.h
|
@@ -110,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
|
114
|
-
rubygems_version: 2.7.6.2
|
113
|
+
rubygems_version: 3.0.3
|
115
114
|
signing_key:
|
116
115
|
specification_version: 4
|
117
116
|
summary: Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby
|
data/example/server.pid
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
24202
|