Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 4F7E02E0256 for ; Sat, 5 Jan 2008 16:17:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 79080-02 for ; Sat, 5 Jan 2008 16:16:44 -0400 (AST) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by postgresql.org (Postfix) with ESMTP id 26D342E00E6 for ; Sat, 5 Jan 2008 16:17:15 -0400 (AST) Received: by rv-out-0910.google.com with SMTP id l15so7083338rvb.43 for ; Sat, 05 Jan 2008 12:17:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=De2qs5fnVGVVPwv0hpQ87TzLq7LQjnXQue7ugZIj6BQ=; b=kQcVoeCYjgULoS5BvBn7UKNrCg739xkelXaJEltrmOlA6rhe+Ogiv3aTlrawK53kN5bhpZ7f6oNIQXyZZrCImMBjN4Mydjp9Lbm1r6MefGGnRvSnUb6GoaDhriZZ+Glc7CGud6fy/hFd2o8i6pnir5XGy4IywAbd9waAC6j4nCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nOYZCvD36XJStJ4bqZqAVKv7qQpf0iI+bEtXM0y964EGWde2mw1SIdawnQseMEEJI1tRgsK281ACXFRDtcHnx2SowG7p/SxKWm3BGJNLK/nRnxpL2jMZT7LkhQWYk9HQmrYSPzP7oWrmmfVOwFT18Eb23Rr+g1n01X+2xIpw2ak= Received: by 10.141.50.17 with SMTP id c17mr9692313rvk.81.1199564234963; Sat, 05 Jan 2008 12:17:14 -0800 (PST) Received: by 10.70.87.16 with HTTP; Sat, 5 Jan 2008 12:17:14 -0800 (PST) Message-ID: Date: Sat, 5 Jan 2008 18:17:14 -0200 From: "Ariel Manzur" To: "Bruce Momjian" Subject: Re: porting libpq? Cc: pgsql-ports@postgresql.org In-Reply-To: <200801051713.m05HDNS22544@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801051713.m05HDNS22544@momjian.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/3 X-Sequence-Number: 2594 On Jan 5, 2008 3:13 PM, Bruce Momjian 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.