Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG: Protocol 3...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3708 of 3896
Post > Topic >>

BUG: Protocol 3.0: that's just odd, needing to add the number of bytes the length field occupies

by Eugen.Konkov@[EMAIL PROTECTED] Apr 16, 2008 at 02:13 PM

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(&nbsp;=20
length($message)+4 );&nbsp;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>&nbsp;</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>&nbsp;</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:&nbsp;writeInt32(&nbsp; length($message));&nbsp;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>&nbsp;</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--




 3 Posts in Topic:
BUG: Protocol 3.0: that's just odd, needing to add the number of
Eugen.Konkov@[EMAIL PROTE  2008-04-16 14:13:55 
Re: BUG: Protocol 3.0: that's just odd, needing to add the numbe
tgl@[EMAIL PROTECTED] (T  2008-04-16 11:35:05 
Re: BUG: Protocol 3.0: that's just odd, needing to add
bruce@[EMAIL PROTECTED]   2008-04-16 12:46:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 14:44:16 CDT 2008.