Moderator: Moderators
-
cologic
- Programmer
- Posts: 337
- Joined: 2003-01-06 18:32
Post
by cologic » 2003-04-28 22:57
The best suggestion I've heard to far involves:
Code: Select all
$Supports <blahblah, the usual DC++ supports> Meta <additional specific metadata types supported>|
for example, neglecting the blahblah parts:
where TTH is tiger tree hashing. One more new client-client command seems necessary:
Code: Select all
$GetMeta <filenameandpath>$<MetaParams>|
Where <MetaParams> could be "Hash$TTH$<TTH depth>". A response would be:
Code: Select all
$MetaLength <sizeinbytes>$<MetaParamsAchieved>|
followed by the information itself. A $PutMeta could be used as well, similarly to the $Send command, but I don't see the need ($Send strikes me as rather redundant).
-
sandos
- Posts: 186
- Joined: 2003-01-05 15:16
Post
by sandos » 2003-04-29 09:46
cologic wrote:The best suggestion I've heard to far involves:
Code: Select all
$Supports <blahblah, the usual DC++ supports> Meta <additional specific metadata types supported>|
So the Meta subpart of $Supports ends at the pipe? What if we want to add another supports with a sub-supports? I would like something that clearly marks what belongs to the Meta part.
-
cologic
- Programmer
- Posts: 337
- Joined: 2003-01-06 18:32
Post
by cologic » 2003-04-29 11:33
I didn't mean to imply a hierarchical $Supports statement - though I can see the case for one, that's not what I'm proposing here.
Rather, Meta just happens to be one of the $Supports arguments, and order doesn't particularly matter.
-
sandos
- Posts: 186
- Joined: 2003-01-05 15:16
Post
by sandos » 2003-04-29 13:07
cologic wrote:I didn't mean to imply a hierarchical $Supports statement - though I can see the case for one, that's not what I'm proposing here.
Rather, Meta just happens to be one of the $Supports arguments, and order doesn't particularly matter.
Well, yeah. I thought about it a bit and I did eventually guess that you didnt actually meant it in a hierarchal way. Wouldnt this also work then (no ambiguities possible?, slightly more data to tranfser):
$Supports <blah> MetaTTH MetaMP3BR MetaMP3ID3 usw
-
ender
- Posts: 224
- Joined: 2003-01-03 22:47
Post
by ender » 2003-04-29 13:38
What about
Code: Select all
$Supports something something-else $Meta TTH MP3BR $xyz abc ...|
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
Post
by Sedulus » 2003-04-29 13:53
well..
that would limit the hierarchy to 2 levels,
you might wind up with ugliness like
$Supports something something-else $$Meta $Hash TTH SHA-1 $$xyz...|
if you want nesting, I'd go with parentheses or /-notations
BZList Meta(Hash(TTH SHA-1)) Xyz
and
BZList Meta Hash TTH SHA-1 /Hash /Meta Xyz
respectively
the problem with just having Meta and TTH would arise when TTH would be an option for something different than the GetMeta command.
I guess I'd opt for
$Supports bla bla MetaHashTTH bla
to keep it simple..
in any case, we all know that huge commands work fine (see $NickList), so a bit large $Supports list shouldn't matter
-
volkris
- Posts: 121
- Joined: 2003-02-02 23:07
Post
by volkris » 2003-04-29 13:53
This is hopefully a stupid and ignorant question, but why is meta needed again? Why can't it simply be
Code: Select all
$Supports <normal DC++ stuff> <Stuff after the meta>
Users browsing this forum: Google [Bot] and 0 guests