void processKnownPeers(TestClient.HelloPeer message) { for (var i = 0; i < message.PeersLength; ++i) { HumbleNet.PeerId newPeer = (HumbleNet.PeerId)message.GetPeers(i); connectToPeer(newPeer); } }
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)); }
public static HelloPeer GetRootAsHelloPeer(ByteBuffer _bb, HelloPeer obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }