Unsolved Issue! 10053 socket error while trying to send data from hercules
-
I have not used any closeSocket() in my application.
-
Hi and welcome to devnet,
Are asking to help debug the server side code ?
-
Thanks for your reply
No. the code snipet which i have posted is client side.i dont have server code, so i am using "Hercules" tool to server me as Server.
Can you look into my client code and suggest me if i am going wrong in flow of receiving the data
-
I tried this code in while loop. even then simple data sent from "Hercules" is immediatly closing the connection. what is causing this close/abort in connection im not sure. im stuck still
do {
bytes_rcvd = recv(sock_fd_g[0], recv_buff, 1, 0); if ( bytes_rcvd > 0 ) printf("Bytes received: %d\n", bytes_rcvd); else if ( bytes_rcvd == 0 ) printf("Connection closed\n"); else printf("recv failed: %d\n", WSAGetLastError()); } while( bytes_rcvd > 0 );
The error is : recv failed:10053
-
Hello guys,
The same code with simple syntax/compatibliy changes i worked on QT version 4.7.
i worked absolutely fine.i was able to receive the data.
can anybody please tell me why the same thing is not working for 5.13.2 QT version.
do i need to apply anything more to my code to make it work -
I tryed to execute the same code with 5.10 version of QT the recv() call is working absolutely fine.
the connection is getting closed only when i execute the GUI in 5.13.2 and try to receive some one byte/n bytes of data from "Hercules" tool.Kindly share your view on this or if anybody is currently working on 5.13.2 then le me know if i am missing anything to get the right support from current version.
Thank you
-
Since you absolutely don't use any Qt socket stuff here I don't know how we could help. Don't see any relation to Qt here.
-
@Christian-Ehrlicher Thanks for your reply Chrisitian Ehrlicher. My major doubt is why does 5.13.2 below versions support my program. Y not the latest version. what is the difference thats causing the issue???
i am looking for an answer for the same, Because im going to use the latest version for my project. if these API issues occure in future this will lead to delay in delivery of product....!!!!!!!!!!!!!!!
-
Hello guys.
i am still stuck up, i have latest 5.14 version of qt but nothing workd for me @recv() case.
im not fully using TCPSOCKET of QT. More of C language is used as i had used in my previous project while developing in qt.kindly look into it please.
the only cause i want to find is why is my socket getting closed at recv() data from "Hercules" -
@ShruthiRich
Hi
Since Qt being a c++ framework,
i cannot see how which version you use should affect your use of native windows api. ??recv() has nothing to do with Qt and I cannot find anything to try regarding this and a certain Qt version.
It should simply have no effect.Did you try fully use Qt for network instead ?