Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison between sockets fails on windows #2840

Closed
vicuna opened this issue Jul 16, 2001 · 2 comments
Closed

Comparison between sockets fails on windows #2840

vicuna opened this issue Jul 16, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 16, 2001

Original bug ID: 439
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,
One cannot compare between sockets on windows, because
their representation is abstract.

For example:

open Printf
open Unix

let _ =
if stdout=stdin then
printf("WRONG\n")
else
printf("OK");
()

On Unix there is no problem, because sockets are represented as
integers, however, on Windows, the representation is abstract.

Can you fix this?

By the way, I recently interfaced with several socket
options not supported in the Unix library. This interface is used
in the Ensemble distribution. Are you interested in a port for the Unix
library ?

Ohad.

orodeh@cs.huji.ac.il
orodeh@il.ibm.com
www.cs.huji.ac.il/~orodeh

@vicuna
Copy link
Author

vicuna commented Jul 20, 2001

Comment author: administrator

One cannot compare between sockets on windows, because
their representation is abstract.
On Unix there is no problem, because sockets are represented as
integers, however, on Windows, the representation is abstract.
Can you fix this?

OK, I'll look into this in a few days.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jul 24, 2001

Comment author: administrator

Fixed 2001-07-24 by Xavier

@vicuna vicuna closed this as completed Jul 24, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant