00001 // $Id: UNDatagramSocketHandle.hh 1742 2010-11-04 14:51:56Z g0dil $ 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_UNDatagramSocketHandle_ 00027 #define HH_SENF_Socket_Protocols_UN_UNDatagramSocketHandle_ 1 00028 00029 // Custom includes 00030 #include "UNAddressing.hh" 00031 #include "UNSocketProtocol.hh" 00032 #include <senf/Socket/Protocols/BSDSocketProtocol.hh> 00033 #include <senf/Socket/FramingPolicy.hh> 00034 #include <senf/Socket/CommunicationPolicy.hh> 00035 #include <senf/Socket/ReadWritePolicy.hh> 00036 #include <senf/Socket/ProtocolClientSocketHandle.hh> 00037 00038 //#include "UNDatagramSocketHandle.mpp" 00039 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00040 00041 namespace senf { 00042 00044 //\{ 00045 00046 typedef MakeSocketPolicy< 00047 UNAddressingPolicy, 00048 DatagramFramingPolicy, 00049 UnconnectedCommunicationPolicy, 00050 ReadablePolicy, 00051 WriteablePolicy 00052 >::policy UNDatagramSocket_Policy; 00053 00072 class UNDatagramSocketProtocol 00073 : public ConcreteSocketProtocol<UNDatagramSocket_Policy, 00074 UNDatagramSocketProtocol>, 00075 public UNSocketProtocol, 00076 public BSDSocketProtocol, 00077 public AddressableBSDSocketProtocol 00078 { 00079 public: 00080 //-//////////////////////////////////////////////////////////////////////// 00081 // internal interface 00082 00084 //\{ 00085 00086 void init_client() const; 00087 00090 void init_client(UNSocketAddress const & address) const; 00092 00099 //\} 00100 }; 00101 00102 typedef ProtocolClientSocketHandle<UNDatagramSocketProtocol> UNDatagramClientSocketHandle; 00103 00104 //\} 00105 00106 } 00107 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00108 //#include "UNDatagramSocketHandle.cci" 00109 //#include "UNDatagramSocketHandle.ct" 00110 //#include "UNDatagramSocketHandle.cti" 00111 #endif 00112 00113 00114 // Local Variables: 00115 // mode: c++ 00116 // fill-column: 100 00117 // comment-column: 40 00118 // c-file-style: "senf" 00119 // indent-tabs-mode: nil 00120 // ispell-local-dictionary: "american" 00121 // compile-command: "scons -u test" 00122 // End: