00001 // $Id: ConnectedUNDatagramSocketHandle.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 HHE_SENF_Socket_Protocols_UN_ConnectedUNDatagramSocketHandle_ 00027 #define HHE_SENF_Socket_Protocols_UN_ConnectedUNDatagramSocketHandle_ 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 00043 typedef MakeSocketPolicy< 00044 UNAddressingPolicy, 00045 DatagramFramingPolicy, 00046 ConnectedCommunicationPolicy, 00047 ReadablePolicy, 00048 WriteablePolicy 00049 >::policy ConnectedUNDatagramSocket_Policy; 00050 00052 //\{ 00053 00072 class ConnectedUNDatagramSocketProtocol 00073 : public ConcreteSocketProtocol<ConnectedUNDatagramSocket_Policy, 00074 ConnectedUNDatagramSocketProtocol>, 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<ConnectedUNDatagramSocketProtocol> ConnectedUNDatagramClientSocketHandle; 00103 00104 //\} 00105 00106 } 00107 00108 //-///////////////////////////////////////////////////////////////////////////////////////////////// 00109 //#include "ConnectedUNDatagramSocketHandle.cci" 00110 //#include "ConnectedUNDatagramSocketHandle.ct" 00111 //#include "ConnectedUNDatagramSocketHandle.cti" 00112 #endif 00113 00114 00115 // Local Variables: 00116 // mode: c++ 00117 // fill-column: 100 00118 // comment-column: 40 00119 // c-file-style: "senf" 00120 // indent-tabs-mode: nil 00121 // ispell-local-dictionary: "american" 00122 // compile-command: "scons -u test" 00123 // End: