Inheritance: Message
Exemplo n.º 1
0
 /// <summary>
 /// Make a new response.
 /// </summary>
 /// <param name="nodeID">The identificator of the sender</param>
 /// <param name="request">The FindValue request generating this response</param>
 /// <param name="data">The list of KademliaResources found</param>
 /// <param name="nodeEndpoint">The address of the sender</param>
 public FindValueDataResponse(ID nodeID, FindValue request, IList<KademliaResource> data, Uri nodeEndpoint)
     : base(nodeID, request, nodeEndpoint)
 {
     vals = data;
 }
 /// <summary>
 /// Make a new response reporting contacts to try.
 /// </summary>
 /// <param name="nodeID">the sender identificator</param>
 /// <param name="request">The FindValue message orginating this response</param>
 /// <param name="close">The list of suggested contacts</param>
 /// <param name="nodeEndpoint">The address of the sender</param>
 public FindValueContactResponse(ID nodeID, FindValue request, List<Contact> close, Uri nodeEndpoint)
     : base(nodeID, request, nodeEndpoint)
 {
     contacts = close;
 }
 /// <summary>
 /// Make a new response.
 /// </summary>
 /// <param name="nodeID">The identificator of the sender</param>
 /// <param name="request">The FindValue request generating this response</param>
 /// <param name="data">The list of KademliaResources found</param>
 /// <param name="nodeEndpoint">The address of the sender</param>
 public FindValueDataResponse(ID nodeID, FindValue request, IList <KademliaResource> data, Uri nodeEndpoint) : base(nodeID, request, nodeEndpoint)
 {
     vals = data;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Make a new response reporting contacts to try.
 /// </summary>
 /// <param name="nodeID">the sender identificator</param>
 /// <param name="request">The FindValue message orginating this response</param>
 /// <param name="close">The list of suggested contacts</param>
 /// <param name="nodeEndpoint">The address of the sender</param>
 public FindValueContactResponse(ID nodeID, FindValue request, List <Contact> close, Uri nodeEndpoint) : base(nodeID, request, nodeEndpoint)
 {
     contacts = close;
 }