public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dan Plimak <danp@systematik.co.nz>
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: DuplicateHandle() failing under MS Telnet Server
Date: Tue, 13 Feb 2001 00:33:00 -0000	[thread overview]
Message-ID: <20010213213421.A540@systematik.co.nz> (raw)
In-Reply-To: <3A87DABB.F72D55C0@etr-usa.com>

On Mon, Feb 12, 2001 at 05:44:43AM -0700, Warren Young wrote:
> This is a "feature" of Microsoft stacks.  You can use DuplicateHandle()
> with Winsock 1.1 to do odd things that normally require the new
> WSADuplicateSocket() and other new Winsock 2/Win32 functionality.  For a
> fuller explanation, there's an article in my FAQ about this, called
> "Passing Sockets Between Processes".
> 
> This feature could be used to implement dup() or maybe dup2() on Winsock
> 1.1 systems, but that's basically only Windows 95, so it's of fairly
> little value these days.  (Win98+ and NT 4+ have Winsock 2 installed by
> default.)

Incidentally, it has always pained me to remember that a socket != HANDLE in
Winsock. This underscores the fact that MS's Berkeley sockets implementation
is only a half-assed emulation layer on top of Winsock's WSAxxx function
family, and convenient stuff people are used to doing under UNIX like doing
write()s and read()s on sockets don't work.

*sigh*

> = Warren Young, maintainer of the Winsock Programmer's FAQ at:

  -- danp


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2001-02-13  0:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-10 20:51 Dan Plimak
2001-02-10 20:58 ` Christopher Faylor
2001-02-12  4:44 ` Warren Young
2001-02-13  0:33   ` Dan Plimak [this message]
2001-02-10 21:05 Dan Plimak

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010213213421.A540@systematik.co.nz \
    --to=danp@systematik.co.nz \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).