Sto cercando una classe winsock che abbia la stessa funzione di winsock.ocx di visual basic.
Cercando ho trovato questa: http://www.killervb.com/WinsockLib.aspx
xò viene generato l'errore 40006.
In un commento alla classe ce scritto:
Citazione:
I was getting a 40006 error. When connecting, it seems I was getting an FD_READ event before FD_CONNECT (where the socket transitioned from sckConnecting to sckConnected). I noticed that in the connect method, you are setting FD_READ as well as FD_CONNECT and FD_CLOSE. And then in the FD_READ handler masking the FD_CONNECT flag. I changed this as follows: in the connect method, only set the FD_CONNECT and FD_CLOSE. Then in the FD_CONNECT handler reset the event flags to FD_READ and FD_CLOSE. This seemed to fix my problem (at least so far.....). I woul dbe interested in your comments as to if this is appropriate or if there may be a better solution.
Come devo fare a correggere l'errore?
GRAZIE A TUTTI _________________ Ci sono 10 tipi di persone: chi conosce l'informatica e chi no.
Non puoi inserire nuovi Topic in questo forum Non puoi rispondere ai Topic in questo forum Non puoi modificare i tuoi messaggi in questo forum Non puoi cancellare i tuoi messaggi in questo forum Non puoi votare nei sondaggi in questo forum