dimanche 12 avril 2015

What's the point of having continuation opcode?


Vote count:

0




Here's an example from MDN:



Client: FIN=1, opcode=0x1, msg="hello"
Server: (process complete message immediately) Hi.
Client: FIN=0, opcode=0x1, msg="and a"
Server: (listening, new message containing text started)
Client: FIN=0, opcode=0x0, msg="happy new"
Server: (listening, payload concatenated to previous message)
Client: FIN=1, opcode=0x0, msg="year!"
Server: (process complete message) Happy new year to you too!


Isn't the FIN bit enough to determine whether the message is finished or to be continued? The continuation opcode looks to be redundant to me.



asked 20 secs ago

alice

718






What's the point of having continuation opcode?

Aucun commentaire:

Enregistrer un commentaire