public AnnouncePeer(NodeId id, NodeId infoHash, BEncodedNumber port, BEncodedString token) : base(id, _queryName, _responseCreator) { Arguments.Add(_infoHashKey, infoHash.BencodedString()); Arguments.Add(_portKey, port); Arguments.Add(_tokenKey, token); }
public AnnouncePeer(NodeId id, NodeId infoHash, BEncodedNumber port, BEncodedString token) : base(id, QueryName, responseCreator) { Parameters.Add(InfoHashKey, infoHash.BencodedString()); Parameters.Add(PortKey, port); Parameters.Add(TokenKey, token); }
protected ResponseBase(NodeId id, BEncodedValue transactionId) : base(_responseType) { Properties.Add(_returnValuesKey, new BEncodedDictionary()); ReturnValues.Add(IdKey, id.BencodedString()); TransactionId = transactionId; }
protected ResponseMessage(NodeId id, BEncodedValue transactionId) : base(ResponseType) { properties.Add(ReturnValuesKey, new BEncodedDictionary()); Parameters.Add(IdKey, id.BencodedString()); TransactionId = transactionId; }
protected ResponseMessage(NodeId id, BEncodedValue transactionId) : base(ResponseType) { Properties.Add(ReturnValuesKey, new BEncodedDictionary()); Parameters.Add(IdKey, id.BencodedString()); TransactionId = transactionId; }
protected QueryMessage(NodeId id, BEncodedString queryName, BEncodedDictionary queryArguments) : base(QueryType) { properties.Add(QueryNameKey, queryName); properties.Add(QueryArgumentsKey, queryArguments); Parameters.Add(IdKey, id.BencodedString()); }
protected QueryMessage(NodeId id, BEncodedString queryName, BEncodedDictionary queryArguments, Func <BEncodedDictionary, QueryMessage, ResponseMessage> responseCreator) : base(QueryType) { properties.Add(QueryNameKey, queryName); properties.Add(QueryArgumentsKey, queryArguments); Parameters.Add(IdKey, id.BencodedString()); ResponseCreator = responseCreator; }
protected QueryBase(NodeId id, BEncodedString queryName, BEncodedDictionary queryArguments, Func <BEncodedDictionary, QueryBase, DhtMessage> responseCreator) : base(QueryType) { Properties.Add(_queryNameKey, queryName); Properties.Add(_queryArgumentsKey, queryArguments); Arguments.Add(IdKey, id.BencodedString()); ResponseCreator = responseCreator; }
protected QueryMessage(NodeId id, BEncodedString queryName, BEncodedDictionary queryArguments, ResponseCreator responseCreator) : base(QueryType) { Properties.Add(QueryNameKey, queryName); Properties.Add(QueryArgumentsKey, queryArguments); Parameters.Add(IdKey, id.BencodedString()); ResponseCreator = responseCreator; }
public GetPeers(NodeId id, NodeId infohash) : base(id, QueryName, responseCreator) { Parameters.Add(InfoHashKey, infohash.BencodedString()); }
public FindNode(NodeId id, NodeId target) : base(id, QueryName) { Parameters.Add(TargetKey, target.BencodedString()); }
public FindNode(NodeId id, NodeId target) : base(id, QueryName, responseCreator) { Parameters.Add(TargetKey, target.BencodedString()); }
public FindNode(NodeId id, NodeId target) : base(id, QueryName, InternalResponseCreator) { Parameters.Add(TargetKey, target.BencodedString()); }
public GetPeers(NodeId id, NodeId infohash) : base(id, _queryName, _responseCreator) { Arguments.Add(_infoHashKey, infohash.BencodedString()); }
public Vote(NodeId id, NodeId target, byte vote) : base(id, _voteKey, _responseCreator) { Arguments.Add(_targetKey, target.BencodedString()); Arguments.Add(_voteKey, new BEncodedNumber(vote)); }
public FindNode(NodeId id, NodeId target) : base(id, _queryName, _responseCreator) { Arguments.Add(_targetKey, target.BencodedString()); }