Bonjour
Je developpe actuellement un serveur en C++ en utilisant WaitForMultipleObject (pour la version Windows)
Nous avons un soucis lors de send (dans certains cas, envoi succesif trop rapide)
Le send nous renvoi une error 10035:
Resource temporarily unavailable.
This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a nonblocking SOCK_STREAM socket, since some time must elapse for the connection to be established.
Je pense donc qu'il faut verifier l'ecriture sur notre fd d'envoi cependant je ne vois pas quel methode utilisee dans le cas d'un serveur fait avec WaitForMutilpleObject alors qu'avec select je n'aurai eu aucun soucis.
Merci
Partager