Ämne:
Re: [dcdev] Protocol draft.
Från:
Jan Vidar Krey
Datum:
2003-12-03 10:00
Till:
Direct Connect developers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm working on an updated draft for DCTNG, and here are some of the new
syntax, which I find more generic.
First of all, it's using mime-types, which I find as a good idea as it allows
for alot of interresting ideas. (Live video or audio streaming over the DC
protocol, anyone?).
The draft will be updated by the end of this week.

On Tuesday 02 December 2003 18:25, eric wrote:
You know the $Search query. Using a standard
text protocol (only 1 command allowed, you have no limit, it is a draft :)
), produce me an example working for searching:
1) an mp3

SRCH [dest] [search id] audio/mpeg >0 [pattern]

2) an avi bigger than 2MB

SRCH [dest] [search id] video/x-msvideo >2097152 [pattern]

3) an mp3 bigger than 2 MB but smaller  than 10MB

SRCH [dest] [search id] video/x-msvideo 2097152-10485760 [pattern]

4) an avi or an mpg being bigger than 350MB but smaller than 700MB

SRCH [dest] [search id] video/x-msvideo,video/mpeg  367001600-734003200
[pattern]

Note:
Sizes can be (where xxx is a number indicating size in bytes):
1)      ">xxx" means more or equal.
2)      "<xxx" less or equal
3)      "xxx" exact size
4)      "!xxx" not exact size
5)      "xxx-xxx" more or equal and less or equal
6)      "xxx,xxx" list of exact sizes
       ">0" any size (actually just number 1)


Cheers

- -- - -janvidar-

Dj Offset / QuickDC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/zaYpMLjmoUcyZAoRAlW8AKCmQ9pNxu0Xu2NMts2wsGbHxyRXqgCgrOsF
0FC+ugCbuu47hjVsD8p+NP8=
=gP6p
-----END PGP SIGNATURE-----

-- 
DC Developers mailinglist
http://3jane.ashpool.org/cgi-bin/mailman/listinfo/dcdev