pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ariel Manzur <puntob@gmail.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: porting libpq?
Date: Sat, 5 Jan 2008 18:17:14 -0200
Message-ID: <f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com> (raw)
In-Reply-To: <200801051713.m05HDNS22544@momjian.us>
References: <f08e060f0801050130w67c69f72jd0a6b39beedf29d8@mail.gmail.com>
	<200801051713.m05HDNS22544@momjian.us>

On Jan 5, 2008 3:13 PM, Bruce Momjian <bruce@momjian.us> wrote:
> Ariel Manzur wrote:
> > Hi..
> >
> > I need to port libpq to a platform that doesn't have a POSIX-like
> > network API, so I was wondering if the network usage on libpq was
> > layered somehow? I noticed that it has code for win32, so I guess
> > there's something, but I didn't see much. Is there any documentation
> > on how to do this?
>
> There is no documentation I know of about porting libpq to other
> platforms.  It normally "just works", with some adjustments for Win32,
> as you mentioned.  If you are more specific about problems you are
> having we can help.

No "problems" yet, just looking at what I need to get started.. I
noticed that it includes other libraries like openssl.h and krb5.h, do
any of those make their own calls to the posix network api? Also, is
it supposed to also work with filesystem sockets too?

I've been looking at the code and I see there's calls to send, recv,
socket, etc directly, so I guess I'll have to isolate them myself.. It
seems to include pthreads too, but it looks like it should be easy to
replace.

Thanks for the reply..

Ariel.



view thread (4+ messages)  latest in thread

Message-ID: <f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com>
Permalink:  ../f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com/
Also on:    postgresql.org/message-id/f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: puntob@gmail.com, bruce@momjian.us
  Subject: Re: porting libpq?
  In-Reply-To: <f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com>
  References: <f08e060f0801050130w67c69f72jd0a6b39beedf29d8@mail.gmail.com> <200801051713.m05HDNS22544@momjian.us> <f08e060f0801051217x2beb5d1cx83ffdd9df842fae3@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox