here is the relevant code:
bool Client::Send(void* 开发者_Go百科msg, int size)
{
int sockId = m_socket.GetId();
struct sockaddr_in remote = m_socket.GetRemotePoint().GetBasePoint();
const char* buf = (const char*)msg;
int error = send(sockId, buf, size, 0);
//int g = GetLastError();
//if (g != 0)
//{
// g = g;
//}
return (error != -1);
}
Does anybody know what's going on?
thanks :)That's WSAECONNABORTED
which means that your local machine has killed the connection. Possibly a firewall issue?
- http://search.microsoft.com/results.aspx?mkt=en-us&q=10053%20Software%20caused%20connection%20abort
I'm so stupid... :/
I have this class MySocket
which I create during Accept
, but in its destructor, I CLOSE the socekt.
thanks everybody :)
精彩评论