pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Magnus Hagander <mha@sollentuna.net>
Cc: 'David Giffin' <david@agent911.com>
Cc: Ken J. Wright <ken@ori-ind.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Win32 interface
Date: Mon, 06 Sep 1999 10:54:47 -0400
Message-ID: <17113.936629687@sss.pgh.pa.us> (raw)
In-Reply-To: <000201bef821$7a95cf00$2801007e@cadzone.tpf.co.jp>

"Hiroshi Inoue" <Inoue@tpf.co.jp> writes:
>> ISTM there was some reason it wouldn't work, like maybe you can
>> only call WSAStartup once per program, but I don't recall for sure.

> We can call WSAStartup() more than once. However,there must be a
> call to WSACleanup() for every successful call to WSAStartup()
> made by a task. Only the final WSACleanup() for that task does the
> actual cleanup.
>
> The simplest way may be to call WSAStartup() while connecting and 
> to call WSACleanup() while finishing(including error cases).

That would be an easy change.  Are these functions fast enough that
calling them for every connect/disconnect cycle would be tolerable?

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <17113.936629687@sss.pgh.pa.us>
Permalink:  ../17113.936629687@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17113.936629687@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Inoue@tpf.co.jp, mha@sollentuna.net, david@agent911.com, ken@ori-ind.com
  Subject: Re: [INTERFACES] Win32 interface
  In-Reply-To: <17113.936629687@sss.pgh.pa.us>

* 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