Logo
~Sockets~
~Examples~
~Contact~


socket_include.cpp File Reference

#include <stdio.h>
#include "socket_include.h"

Include dependency graph for socket_include.cpp:

Go to the source code of this file.


Functions

const char * StrError (int x)

Detailed Description

Date:
2004-11-28
Author:
grymse@alhem.net

Definition in file socket_include.cpp.


Function Documentation

const char* StrError ( int  x  ) 

Definition at line 36 of file socket_include.cpp.

00037 {
00038 static  char tmp[100];
00039         switch (x)
00040         {
00041         case 10004: return "Interrupted function call.";
00042         case 10013: return "Permission denied.";
00043         case 10014: return "Bad address.";
00044         case 10022: return "Invalid argument.";
00045         case 10024: return "Too many open files.";
00046         case 10035: return "Resource temporarily unavailable.";
00047         case 10036: return "Operation now in progress.";
00048         case 10037: return "Operation already in progress.";
00049         case 10038: return "Socket operation on nonsocket.";
00050         case 10039: return "Destination address required.";
00051         case 10040: return "Message too long.";
00052         case 10041: return "Protocol wrong type for socket.";
00053         case 10042: return "Bad protocol option.";
00054         case 10043: return "Protocol not supported.";
00055         case 10044: return "Socket type not supported.";
00056         case 10045: return "Operation not supported.";
00057         case 10046: return "Protocol family not supported.";
00058         case 10047: return "Address family not supported by protocol family.";
00059         case 10048: return "Address already in use.";
00060         case 10049: return "Cannot assign requested address.";
00061         case 10050: return "Network is down.";
00062         case 10051: return "Network is unreachable.";
00063         case 10052: return "Network dropped connection on reset.";
00064         case 10053: return "Software caused connection abort.";
00065         case 10054: return "Connection reset by peer.";
00066         case 10055: return "No buffer space available.";
00067         case 10056: return "Socket is already connected.";
00068         case 10057: return "Socket is not connected.";
00069         case 10058: return "Cannot send after socket shutdown.";
00070         case 10060: return "Connection timed out.";
00071         case 10061: return "Connection refused.";
00072         case 10064: return "Host is down.";
00073         case 10065: return "No route to host.";
00074         case 10067: return "Too many processes.";
00075         case 10091: return "Network subsystem is unavailable.";
00076         case 10092: return "Winsock.dll version out of range.";
00077         case 10093: return "Successful WSAStartup not yet performed.";
00078         case 10101: return "Graceful shutdown in progress.";
00079         case 10109: return "Class type not found.";
00080         case 11001: return "Host not found.";
00081         case 11002: return "Nonauthoritative host not found.";
00082         case 11003: return "This is a nonrecoverable error.";
00083         case 11004: return "Valid name, no data record of requested type.";
00084 
00085         default:
00086                 break;
00087         }
00088         snprintf(tmp, sizeof(tmp), "Winsock error code: %d", x);
00089         return tmp;
00090 }

Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4