00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 00040 #ifndef _SOCKETEXCEPTION_H_ 00041 #define _SOCKETEXCEPTION_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 //--------------------------------------------------------------------------- 00047 // Includes 00048 //--------------------------------------------------------------------------- 00049 00050 #include <iostream> 00051 #include <string> 00052 #include "OSGException.h" 00053 #include "OSGBase.h" 00054 00055 OSG_BEGIN_NAMESPACE 00056 00057 class OSG_BASE_DLLMAPPING SocketException : public Exception 00058 { 00059 /*========================== PUBLIC =================================*/ 00060 public: 00061 /*---------------------------------------------------------------------*/ 00065 SocketException(); 00066 00068 }; 00069 00070 class OSG_BASE_DLLMAPPING SocketError : public SocketException 00071 { 00072 /*========================== PUBLIC =================================*/ 00073 public: 00074 /*---------------------------------------------------------------------*/ 00078 SocketError(const char *function); 00079 00081 }; 00082 00083 class OSG_BASE_DLLMAPPING SocketHostError : public SocketException 00084 { 00085 /*========================== PUBLIC =================================*/ 00086 public: 00087 /*---------------------------------------------------------------------*/ 00091 SocketHostError(const char *function); 00092 00094 }; 00095 00096 class OSG_BASE_DLLMAPPING SocketInUse : public SocketError 00097 { 00098 /*========================== PUBLIC =================================*/ 00099 public: 00100 /*---------------------------------------------------------------------*/ 00104 SocketInUse(const char *text); 00105 00107 }; 00108 00109 class OSG_BASE_DLLMAPPING SocketConnReset : public SocketError 00110 { 00111 /*========================== PUBLIC =================================*/ 00112 public: 00113 /*---------------------------------------------------------------------*/ 00117 SocketConnReset(const char *text); 00118 00120 }; 00121 00122 OSG_END_NAMESPACE 00123 00124 #define OSG_SOCKETEXCEPTION_HEADER_CVSID "@(#)$Id: $" 00125 00126 #endif
1.4.3