ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/tcp_websocket.ext
(Generate patch)

Comparing deliantra/server/ext/tcp_websocket.ext (file contents):
Revision 1.3 by root, Tue Nov 6 15:11:16 2012 UTC vs.
Revision 1.4 by root, Sat Nov 10 02:32:13 2012 UTC

1#! perl # mandatory depends=tcp 1#! perl # mandatory depends=tcp
2 2
3# websocket protocol server, actually only the handshake part 3# websocket protocol server (RFC6455), actually only the handshake part
4# the framing is implemented in socket/lowlevel.C
5# this implementations doesn't even try to completely implement th RFC,
6# it tries only to be good enough.
4 7
5use Digest::SHA1 (); 8use Digest::SHA1 ();
6 9
7# websocket requests can be very long, and we want the tcp code to buffer for us 10# websocket requests can be very long, and we want the tcp code to buffer for us
8our $detector = ext::tcp::register websocket => 4096, sub { 11our $detector = ext::tcp::register websocket => 4096, sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines