Home > Back-end >  Socket implementation ping command in the sendto () fails, an error code 10013 how to solve
Socket implementation ping command in the sendto () fails, an error code 10013 how to solve

Time:09-24

Int the write=sendto (m_socket icmp_data, datasize, 0, (struct sockaddr *) & amp; Dest, sizeof (dest));
If (write==SOCKET_ERROR)//send failure
{
If (WSAGetLastError ()==WSAETIMEDOUT)
{
QDebug () & lt; Sendnum -;
continue;
}
QDebug () & lt; return;
}


Output:
"Sento () failed:" 10013

Say use forbidden access permissions to access a socket, how to solve

CodePudding user response:

Right click your exe, the Run As Administrator

CodePudding user response:

CPP file, I have tried in Qt and dev again, the same mistake
  • Related