brotorift 0.3.3 → 0.3.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
  SHA256:
3
- metadata.gz: 76f2008eb36d00390f168dd1c80c0dc3a1477815c5d85131b15bddaa4a9561b0
4
- data.tar.gz: 900ce3fb63ea47ad04b256edc82b20aa7ee7a0c6b4ee9908047834c86d099685
3
+ metadata.gz: 1a46ab3acaf1a4f5f631dc256a00d2808431bd30f03764cd68c9d87e92de1a0e
4
+ data.tar.gz: f6e40a5e854feba074a650eadb592ed766ecf54a76876f6131e25188d7a9444d
5
5
  SHA512:
6
- metadata.gz: ce1b105247f0c2e84a775ab2eb728bcb360aefd6d6b9650a8f8139aac561970118caf8ff1b3514d6d8c3d40a5c1793e9eddb8705444af7753eaf8299432b1894
7
- data.tar.gz: 5fa74f4f57319b36848319b4137bcdaa58bfeec3b1a734cbad85252ce5e73d499d149df57000d8e6c9f7e45864d665761fb35505f417a7d094ca90bc6e45e175
6
+ metadata.gz: eefe8405c3994ff98bd13d1bb7059d7bbb90cc03b734782169eb211f018d8c844dd91bd074124914790d3fbe896cb2020e6583b0a4d351818f9f4be46bdba70f
7
+ data.tar.gz: c1e3e4734a78fc456f271d446988d61131ba810cc411a63340afd9687dc04a1bd2167f4e32e8e5c8d9cca79a91aaa23d95a0206c93218ff9b5e955e13ba7892e
@@ -64,9 +64,12 @@ namespace <%= node.namespace %>
64
64
  {
65
65
  public <%= node_direction.handler_name %> handler { get; set; }
66
66
 
67
+ public PacketProcessPolicy policy { get; set; }
68
+
67
69
  public <%= node_direction.connector_name %>( <%= node_direction.handler_name %> handler )
68
70
  {
69
71
  this.handler = handler;
72
+ this.policy = PacketProcesPolicy.Discard;
70
73
  }
71
74
 
72
75
  private enum InMessage
@@ -90,11 +93,11 @@ namespace <%= node.namespace %>
90
93
  <% end %>this.SendPacket( packet );
91
94
  }<% end %>
92
95
 
93
- protected override void ProcessPacket( InPacket packet )
96
+ protected override bool ProcessPacket( InPacket packet )
94
97
  {
95
98
  if( this.handler == null )
96
99
  {
97
- return;
100
+ return this.policy == PacketProcessPolicy.Discard;
98
101
  }
99
102
 
100
103
  switch( (InMessage)packet.Header )
@@ -108,6 +111,7 @@ namespace <%= node.namespace %>
108
111
  default:
109
112
  break;
110
113
  }
114
+ return true;
111
115
  }
112
116
  }
113
117
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brotorift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ren