sock/zz_sock_exception.h

Go to the documentation of this file.
00001 /* libzzsock
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_sock_exception_h
00010 #define zz_sock_exception_h
00011 
00012 #ifdef _WIN32
00013         #include <winsock2.h>
00014 #else
00015         #include <sys/types.h>
00016         #include <sys/socket.h> 
00017         #include <netinet/in.h>
00018         #include <arpa/inet.h>
00019         #include <netdb.h>
00020         #include <unistd.h>
00021         #include <errno.h>
00022         typedef int SOCKET;
00023         #define INVALID_SOCKET -1
00024         #define SOCKET_ERROR -1
00025 #endif
00026 
00027 #include <zz_log_exception.h>
00028 #include <zz_export.h>
00029 
00030 /*
00031         Description:
00032         Socket fel
00033 
00034         Author: 
00035         Toni Thomsson, toni@tonjac.org
00036 
00037         Library:
00038         libzzsock.a (HPUX) libzzsock.lib (win32)
00039 
00040         Platform:
00041         HPUX, win32
00042 */
00043 class ZZ_API CzzSockException : public CzzLogException
00044 {
00045 public:
00046 
00047         /*
00048                 Description:
00049                 Översätter ett socket fel till ett CzzException
00050         */
00051         CzzSockException( int line,                     // IN, radnummer
00052                                                 CzzString file  // IN, filnamn
00053                                                 );
00054 
00055         ~CzzSockException();
00056 
00057 private:
00058         CzzString GetLastSocketError( void );
00059 
00060 };
00061 
00062 #endif // zz_sock_exception_h

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO