Re: Implementing Frontend/Backend Protocol TCP/IP - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Implementing Frontend/Backend Protocol TCP/IP
Date
Msg-id 20091027134158.GB4876@alvh.no-ip.org
Whole thread Raw
In response to Re: Implementing Frontend/Backend Protocol TCP/IP  (Raimon Fernandez <coder@montx.com>)
Responses Re: Implementing Frontend/Backend Protocol TCP/IP
List pgsql-general
Raimon Fernandez wrote:

> After the S I found thre char(0) and later the size of the packet,
> and later the name + char(0) (separator between value and
> parameter), the parameter, and so on.
>
> Why I found those three char(0) after the S and before the packet
> length?

Because the length is an int32.  There are 3 zeros because the packet
length is less than 256.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Raimon Fernandez
Date:
Subject: Re: Implementing Frontend/Backend Protocol TCP/IP
Next
From: Alvaro Herrera
Date:
Subject: Re: Implementing Frontend/Backend Protocol TCP/IP