> SteveKing wrote:
>
> >> - Socket error 11001 is a resolving problem
> >
> >
> > I know that. ;)
>
> Okay, I first didn't.. :-)
Maybe this function comes in handy:
string Csocket::error2a(int v)
{
switch (v)
{
case WSAEADDRINUSE: return "EADDRINUSE";
case WSAEADDRNOTAVAIL: return "EADDRNOTAVAIL";
case WSAEAFNOSUPPORT: return "EAFNOSUPPORT";
case WSAEALREADY: return "EALREADY";
case WSAECONNABORTED: return "ECONNABORTED";
case WSAECONNREFUSED: return "ECONNREFUSED";
case WSAECONNRESET: return "ECONNRESET";
case WSAEDESTADDRREQ: return "EDESTADDRREQ";
case WSAEDQUOT: return "EDQUOT";
case WSAEHOSTDOWN: return "EHOSTDOWN";
case WSAEHOSTUNREACH: return "EHOSTUNREACH";
case WSAEINPROGRESS: return "EINPROGRESS";
case WSAEISCONN: return "EISCONN";
case WSAELOOP: return "ELOOP";
case WSAEMSGSIZE: return "EMSGSIZE";
case WSAENAMETOOLONG: return "ENAMETOOLONG";
case WSAENETDOWN: return "ENETDOWN";
case WSAENETRESET: return "ENETRESET";
case WSAENETUNREACH: return "ENETUNREACH";
case WSAENOBUFS: return "ENOBUFS";
case WSAENOPROTOOPT: return "ENOPROTOOPT";
case WSAENOTCONN: return "ENOTCONN";
case WSAENOTEMPTY: return "ENOTEMPTY";
case WSAENOTSOCK: return "ENOTSOCK";
case WSAEOPNOTSUPP: return "EOPNOTSUPP";
case WSAEPFNOSUPPORT: return "EPFNOSUPPORT";
case WSAEPROTONOSUPPORT: return "EPROTONOSUPPORT";
case WSAEPROTOTYPE: return "EPROTOTYPE";
case WSAEREMOTE: return "EREMOTE";
case WSAESHUTDOWN: return "ESHUTDOWN";
case WSAESOCKTNOSUPPORT: return "ESOCKTNOSUPPORT";
case WSAESTALE: return "ESTALE";
case WSAETIMEDOUT: return "ETIMEDOUT";
case WSAETOOMANYREFS: return "ETOOMANYREFS";
case WSAEUSERS: return "EUSERS";
case WSAEWOULDBLOCK: return "EWOULDBLOCK";
}
char b[12];
sprintf(b, "%d", v);
return b;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Aug 4 22:27:27 2004