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

SO_ERROR dans le module Unix #2590

Closed
vicuna opened this issue Oct 18, 2000 · 1 comment
Closed

SO_ERROR dans le module Unix #2590

vicuna opened this issue Oct 18, 2000 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Oct 18, 2000

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

Bug description

Il serait très utile (et très simple) de rajouter SO_ERROR aux paramètres
possibles d'Unix.getsockopt. Ceci permet en effet d'implémenter des appels
connect non bloquants : si on rend le socket non bloquant avant le
connect, connect va renvoyer EINPROGRESS dans errno, et select indiquera
qu'on peut écrire quand la connexion est terminée ou a échoué. Ensuite,
c'est avec getsockopt qu'on est censé récupérer l'état (échec/succès).

Pour l'ajouter, il suffit de rajouter SO_ERROR dans les déclarations de
type d'unix.ml et unix.mli et dans l'énumération de sockopt.c.

Cordialement,

						Nicolas GEORGE
@vicuna
Copy link
Author

vicuna commented Jun 25, 2001

Comment author: administrator

Done 2001-06-25 by XL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant