Re: Implementing Frontend/Backend Protocol TCP/IP

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Raimon Fernandez <coder(at)montx(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Implementing Frontend/Backend Protocol TCP/IP
Date: 2009-10-27 13:41:58
Message-ID: 20091027134158.GB4876@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-10-27 13:44:54 Re: Implementing Frontend/Backend Protocol TCP/IP
Previous Message Raimon Fernandez 2009-10-27 13:38:15 Re: Implementing Frontend/Backend Protocol TCP/IP

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alvaro Herrera 2009-10-27 13:44:54 Re: Implementing Frontend/Backend Protocol TCP/IP
Previous Message Raimon Fernandez 2009-10-27 13:38:15 Re: Implementing Frontend/Backend Protocol TCP/IP