On 9/3/06, Yves Kavanovich <[EMAIL PROTECTED]> wrote:
Yidong Fang wrote:
>
> If the server uses the same algorithm as the client,I guess that the
> server doesn't need to wait for the client 1536 bytes to send the
> handshake reply? So the handshake reply doesn't need to be the same as
> the 1536 bytes from the client: about half the same.
They both use the same algorithm to generate the chunks, but they are
different each time as they're based on the system uptime of the computer its
being generated on and also of previously used contents of the stack. The
server and client both generate their own 1536 byte chunks.
The conversation goes like this:
Client to server 03 (header byte)
[1536 byte chunk generated on the client]
Server to client 03 (header byte)
[1536 byte chunk generated on the server]
[copy of the 1536 byte chunk sent from client]
Client to server [copy of the 1536 byte chunk sent from server]
All the client and server do is verify that they got the same 1536 bytes back
as was sent. If so, the protocol continues to the more useful stuff!
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
--
----------------------------
Igor Costa
www.igorcosta.com
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
