00001 00012 /* 00013 00014 Copyright (c) 2007, Tim Burrell 00015 Licensed under the Apache License, Version 2.0 (the "License"); 00016 you may not use this file except in compliance with the License. 00017 You may obtain a copy of the License at 00018 00019 http://www.apache.org/licenses/LICENSE-2.0 00020 00021 Unless required by applicable law or agreed to in writing, software 00022 distributed under the License is distributed on an "AS IS" BASIS, 00023 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00024 See the License for the specific language governing permissions and 00025 limitations under the License. 00026 00027 */ 00028 00029 #ifndef __SocketInterface_h 00030 #define __SocketInterface_h 00031 00032 #if HAVE_CONFIG_H 00033 #include "config.h" 00034 #endif 00035 00036 #include "SocketInterface.hpp" 00037 #include <cstdlib> 00038 00040 // Namespace 00042 00043 namespace H { 00044 00046 // Typedef's / Defines 00048 00050 // Class Definition 00052 00059 class SocketInterface { 00060 public: 00061 // Public Member Functions 00062 virtual int getOldSocket() const = 0; 00063 virtual int getSocket() const = 0; 00064 00065 // Construction / Deconstruction 00066 SocketInterface(); 00067 virtual ~SocketInterface(); 00068 00069 private: 00070 // Private Member Functions 00071 00072 // Private Member Variables 00073 }; 00074 00076 00077 } // H namespace 00078 00079 #endif // __SocketInterface_h