ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/lowlevel.C
(Generate patch)

Comparing deliantra/server/socket/lowlevel.C (file contents):
Revision 1.88 by root, Tue Nov 6 15:11:16 2012 UTC vs.
Revision 1.89 by root, Tue Nov 6 21:50:36 2012 UTC

609 { 609 {
610 int l = sl.length (); 610 int l = sl.length ();
611 611
612 if (l < 126) 612 if (l < 126)
613 { 613 {
614 uint8 hdr [] = { 0x82, l };
615 send (hdr, sizeof (hdr));
616 }
617 else
618 {
614 uint8 hdr [] = { 0x82, 126, l >> 8, l }; 619 uint8 hdr [] = { 0x82, 126, l >> 8, l };
615 send (hdr, sizeof (hdr));
616 }
617 else
618 {
619 uint8 hdr [] = { 0x82, l };
620 send (hdr, sizeof (hdr)); 620 send (hdr, sizeof (hdr));
621 } 621 }
622 622
623 send (sl.buf_ + sl.hdrlen, l); 623 send (sl.buf_ + sl.hdrlen, l);
624 } 624 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines