Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Friedman Roy <roy@cs.technion.ac.il>
To: caml-list@inria.fr
Subject: socket in the windows port
Date: Fri, 11 Sep 1998 00:23:29 +0200 (IST)	[thread overview]
Message-ID: <Pine.GSO.3.95-heb-2.07.980911002002.20311A-100000@csa> (raw)

Hi everyone,

In looking at the code of socket.c for windows, I noticed the following
code:

  /* Set sockets to synchronous mode  */
  optionValue = SO_SYNCHRONOUS_NONALERT;
  setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE,
             (char *)&optionValue, sizeof(optionValue));

Is there a reason it is there? One negative aspect of this is that when
one tries to set a socket to a non blocking mode and then connect to it,
then NT returns a WSAEINVALID error code, meaning that the operation is
not allowed on that socket.

Thanks,

Roy







             reply	other threads:[~1998-09-11  6:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-10 22:23 Friedman Roy [this message]
1998-09-11 16:41 ` Xavier Leroy

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=Pine.GSO.3.95-heb-2.07.980911002002.20311A-100000@csa \
    --to=roy@cs.technion.ac.il \
    --cc=caml-list@inria.fr \
    /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