This is a multi-part message in MIME format.
------=_NextPart_000_0049_01C89FCC.1ACD8340
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
server side: writeInt32( length($message)+4 ); writeString( $message );
client side: $length=3D readInt32(); readString( $length -4 )
that's just odd, needing to add the number of bytes the length field =
occupies
This is simpler:
server side: writeInt32( length($message)); writeString( $message );
client side: $length=3D readInt32(); readString( $length )
Will you plan to correct that in Protocol 3.1?
------=_NextPart_000_0049_01C89FCC.1ACD8340
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN>
<DIV><SPAN><FONT face=3DArial size=3D2>server side: writeInt32( =20
length($message)+4 ); writeString( $message );</FONT></SPAN></DIV>
<DIV><SPAN></SPAN><SPAN><FONT face=3DArial size=3D2>client side: =
$length=3D=20
readInt32(); readString( $length -4 )</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=3DArial =
size=3D2></FONT></SPAN> </DIV></SPAN></DIV>
<DIV><SPAN>that's just <WBR>odd, needing to <WBR>add the number of =
<WBR>bytes=20
the length <WBR>field occupies</SPAN></DIV>
<DIV><SPAN><FONT face=3DArial size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=3DArial size=3D2>This is =
simpler:</FONT></SPAN></DIV>
<DIV><SPAN><SPAN><SPAN><FONT face=3DArial size=3D2>server=20
side: writeInt32( length($message)); writeString( =
$message=20
);</FONT></SPAN>
<DIV><SPAN><FONT face=3DArial size=3D2>client side: $length=3D =
readInt32();=20
readString( $length )</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=3DArial size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=3DArial size=3D2>Will you plan to correct that in =
Protocol=20
3.1?</FONT></SPAN></DIV></SPAN></SPAN></DIV></BODY></HTML>
------=_NextPart_000_0049_01C89FCC.1ACD8340--