trisulrp 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3a837960aa8bad2a85a89334b12ef67d879a1b0
4
- data.tar.gz: 53d31d34049c4852714bf66339141baae43f629c
3
+ metadata.gz: 6e3d5ec5c5c5a153c3ad182292e7d7e2b67b1598
4
+ data.tar.gz: 65e73a1228e3f94459b69518db2aac2095e06fb0
5
5
  SHA512:
6
- metadata.gz: 40d725a191e2d1761e474d541bdc5af9e5095beba0582f7f07c4e0a45384932dac8cb6235531bb5189a0af51a58f406f73279c5c4ffa52b6cb4bf331cae781e1
7
- data.tar.gz: 18b3ded64e3bc27053061847c733cb6f46eb6d07495c0c5cf19a2f548ac2b994614be511048b06857ae379e7c7d51ce574e04f6e0cef04e893f7cfff1d7c48ed
6
+ metadata.gz: 68333ba5a7e17c805b1ed89fa63ee57739b8d7c5d657ad683cb129f4fd6ac1adcffae735a04eaf778d9e046daaed1ca3c6e70302662ad299b24ae3a244dc1588
7
+ data.tar.gz: 3c0d676a7929abf9386519827dab7cfba14a1d46577157c975238eae9faf93839480fb3ccf6589f0331d63a207193842286e46f9212aaaff469ac360bf15c221
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.4
@@ -114,7 +114,10 @@ module TrisulRP::Protocol
114
114
  dataarray=conn.read(datalen)
115
115
  resp =TRP::Message.new
116
116
  resp.parse dataarray
117
- raise resp.error_response if resp.trp_command == TRP::Message::Command::ERROR_RESPONSE
117
+ if resp.trp_command == TRP::Message::Command::ERROR_RESPONSE
118
+ print "TRP ErrorResponse: #{resp.error_response.error_message}\n"
119
+ raise resp.error_response
120
+ end
118
121
  yield unwrap_response(resp) if block_given?
119
122
  return unwrap_response(resp)
120
123
  end
@@ -433,21 +433,21 @@ module TRP
433
433
  set_fully_qualified_name "TRP.FilteredDatagramRequest.BySession"
434
434
 
435
435
  optional :string, :session_group, 1, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
436
- required ::TRP::SessionID, :session_id, 2
436
+ repeated ::TRP::SessionID, :session_ids, 2
437
437
  end
438
438
 
439
439
  class ByAlert < ::ProtocolBuffers::Message
440
440
  set_fully_qualified_name "TRP.FilteredDatagramRequest.ByAlert"
441
441
 
442
442
  optional :string, :alert_group, 1, :default => "{9AFD8C08-07EB-47E0-BF05-28B4A7AE8DC9}"
443
- required ::TRP::AlertID, :alert_id, 2
443
+ repeated ::TRP::AlertID, :alert_ids, 2
444
444
  end
445
445
 
446
446
  class ByResource < ::ProtocolBuffers::Message
447
447
  set_fully_qualified_name "TRP.FilteredDatagramRequest.ByResource"
448
448
 
449
449
  required :string, :resource_group, 1
450
- required ::TRP::ResourceID, :resource_id, 2
450
+ repeated ::TRP::ResourceID, :resource_ids, 2
451
451
  end
452
452
 
453
453
  optional :int64, :max_packets, 1, :default => 0
@@ -1,7 +1,7 @@
1
1
  // Trisul Remote Protocol (TRP) definition
2
2
  // Based on Google Protocol Buffers
3
3
  // (c) 2010-11, Unleash Networks (http://www.unleashnetworks.com)
4
- // $Rev: 6921 $
4
+ // $Rev: 6929 $
5
5
  package TRP;
6
6
 
7
7
  message Timestamp {
@@ -317,12 +317,12 @@ message FilteredDatagramRequest{
317
317
  required TimeInterval time_interval=1;
318
318
  required string filter_expression=2;
319
319
  }
320
- optional ByFilterExpr filter_expression=4;
320
+ optional ByFilterExpr filter_expression=4;
321
321
 
322
322
  // by session
323
323
  message BySession {
324
324
  optional string session_group=1[default="{99A78737-4B41-4387-8F31-8077DB917336}"];
325
- required SessionID session_id=2;
325
+ repeated SessionID session_ids=2;
326
326
  }
327
327
  optional BySession session=5;
328
328
 
@@ -330,18 +330,19 @@ message FilteredDatagramRequest{
330
330
  // by alert
331
331
  message ByAlert {
332
332
  optional string alert_group=1[default="{9AFD8C08-07EB-47E0-BF05-28B4A7AE8DC9}"];
333
- required AlertID alert_id=2;
333
+ repeated AlertID alert_ids=2;
334
334
  }
335
335
  optional ByAlert alert=6;
336
336
 
337
337
  // by resource
338
338
  message ByResource {
339
339
  required string resource_group=1;
340
- required ResourceID resource_id=2;
340
+ repeated ResourceID resource_ids=2;
341
341
  }
342
342
  optional ByResource resource=7;
343
343
 
344
344
  optional PcapDisposition disposition=8[default=DOWNLOAD];
345
+
345
346
  }
346
347
 
347
348
  /////////////////////////////////////
data/trisulrp.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "trisulrp"
8
- s.version = "2.0.2"
8
+ s.version = "2.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["vivek"]
12
- s.date = "2014-05-31"
12
+ s.date = "2014-06-14"
13
13
  s.description = "This gem deals about the trisul remote protocol"
14
14
  s.email = "vivek_rajagopal@yahoo.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trisulrp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-31 00:00:00.000000000 Z
11
+ date: 2014-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-protocol-buffers