Fwd: [whatwg] General TCP connections API?
Charles Iliya Krempeaux
supercanadian at gmail.com
Thu May 26 17:40:21 PDT 2005
Hello,
I think this was suppose to go to the mailing list, and not just me.
See ya
---------- Forwarded message ----------
From: Kornel Lesinski <kornel at ldreams.net>
Date: May 26, 2005 5:34 PM
Subject: Re: [whatwg] General TCP connections API?
To: Charles Iliya Krempeaux <supercanadian at gmail.com>
On Thu, 26 May 2005 23:10:00 +0100, Charles Iliya Krempeaux
<supercanadian at gmail.com> wrote:
>> On your website, if you create iframe with URL:
>> example.com/page.php?name=<script>connectPort(25).send("HELO...SPAM...SPAM");</script>
>
> I won't be a problem if the web developers is escaping whatever the
> user supplies.
...and HTML developers should write valid HTML, etc.
Sorry, but there is A LOT of totally ignorant/incompetent web developers
and sysadmins.
> For example, let's say I want to stream images, or video, or audio,
> from the client to the server.
and how are you going to decode and display them using Javascript?
and how that is better than current streaming multimedia plugins? or Java?
> And that there were some high "performance" demands
> for this that HTTP couldn't meet. (Like, for example, if I wanted to
> push 24 frames per second from client to server.)
This doesn't make sense to me.
HTTP doesn't add any overhead to TCP/IP except headers (you don't have to
use chunked encoding), so your custom protocol can't save you more than
*one* IP packet per file! (and typically less thanks to keepalive
connections)
For high performance you can't use TCP/IP and need some lower-level
protocol like UDP and specially crafted data format that works with
partial/out-of-order packets. That's absolutely not a thing anyone would
dare to implement in Javascript.
--
regards, Kornel Lesinski
--
Charles Iliya Krempeaux, B.Sc.
charles @ reptile.ca
supercanadian @ gmail.com
___________________________________________________________________________
Wikibooks, Free Open-Content Books http://wikibooks.org/
More information about the whatwg-whatwg.org
mailing list