示例#1
0
 void processKnownPeers(TestClient.HelloPeer message)
 {
     for (var i = 0; i < message.PeersLength; ++i)
     {
         HumbleNet.PeerId newPeer = (HumbleNet.PeerId)message.GetPeers(i);
         connectToPeer(newPeer);
     }
 }
示例#2
0
 public static Offset <HelloPeer> CreateHelloPeer(FlatBufferBuilder builder,
                                                  VectorOffset peersOffset = default(VectorOffset),
                                                  bool is_response         = false)
 {
     builder.StartObject(2);
     HelloPeer.AddPeers(builder, peersOffset);
     HelloPeer.AddIsResponse(builder, is_response);
     return(HelloPeer.EndHelloPeer(builder));
 }
示例#3
0
 public static HelloPeer GetRootAsHelloPeer(ByteBuffer _bb, HelloPeer obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }