00001 // $Id: UNSocketProtocol.hh 1772 2011-03-10 12:45:21Z tho $ 00002 // 00003 // Copyright (C) 2007 00004 // Fraunhofer (FOKUS) 00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY 00006 // David Wagner <dw6@berlios.de> 00007 // 00008 // This program is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the 00020 // Free Software Foundation, Inc., 00021 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00026 #ifndef HH_SENF_Socket_Protocols_UN_UNSocketProtocol_ 00027 #define HH_SENF_Socket_Protocols_UN_UNSocketProtocol_ 1 00028 00029 // Custom includes 00030 #include <senf/Socket/SocketProtocol.hh> 00031 00032 //#include "UNSocketProtocol.mpp" 00033 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00034 00035 namespace senf { 00036 00038 //\{ 00039 00045 class UNSocketProtocol 00046 : public virtual SocketProtocol 00047 { 00048 public: 00049 virtual void close(); 00050 // 00053 virtual void terminate() const; 00054 00061 00062 //\{ 00063 00064 unsigned available() const; 00065 bool eof() const; 00066 00067 //\} 00068 00069 private: 00070 void check_and_unlink() const; 00071 00072 std::string path_; 00073 }; 00074 00075 } 00076 00077 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00078 //#include "UNSocketProtocol.cci" 00079 //#include "UNSocketProtocol.ct" 00080 //#include "UNSocketProtocol.cti" 00081 #endif 00082 00083 00084 // Local Variables: 00085 // mode: c++ 00086 // fill-column: 100 00087 // comment-column: 40 00088 // c-file-style: "senf" 00089 // indent-tabs-mode: nil 00090 // ispell-local-dictionary: "american" 00091 // compile-command: "scons -u test" 00092 // End: