X-Git-Url: https://git.syn-net.org/debian/?a=blobdiff_plain;f=src%2FsyncConnectionCommand.h;h=282f39267ddd8333eec197dc490e944953e268f5;hb=bd02a5f6be4815d46524d613f727199ca756c971;hp=5debf1fc36b8514e3b4dfbba41c50391d3273f54;hpb=058ae090a970436caec3b3059e9e18b310dd6b0d;p=anytun.git diff --git a/src/syncConnectionCommand.h b/src/syncConnectionCommand.h index 5debf1f..282f392 100644 --- a/src/syncConnectionCommand.h +++ b/src/syncConnectionCommand.h @@ -11,14 +11,15 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2008 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner * * This file is part of Anytun. * * Anytun is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. * * Anytun is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -29,8 +30,8 @@ * along with anytun. If not, see . */ -#ifndef _SYNCCONNECTIONCOMMAND_H -#define _SYNCCONNECTIONCOMMAND_H +#ifndef ANYTUN_syncConnectionCommands_h_INCLUDED +#define ANYTUN_syncConnectionCommands_h_INCLUDED #include #include @@ -41,24 +42,23 @@ class SyncConnectionCommand { public: - SyncConnectionCommand(ConnectionList & cl ); - SyncConnectionCommand(ConnectionList & cl ,u_int16_t mux); - u_int16_t getMux() const; + SyncConnectionCommand(ConnectionList& cl); + SyncConnectionCommand(ConnectionList& cl ,uint16_t mux); + uint16_t getMux() const; private: - SyncConnectionCommand(const SyncConnectionCommand &); - ConnectionList & cl_; - u_int16_t mux_; + SyncConnectionCommand(const SyncConnectionCommand&); + ConnectionList& cl_; + uint16_t mux_; friend class boost::serialization::access; template - void serialize(Archive & ar, const unsigned int version) - { - Lock lock(cl_.getMutex()); - ar & mux_; - ConnectionParam & conn = cl_.getOrNewConnectionUnlocked(mux_); - ar & conn; - } + void serialize(Archive& ar, const unsigned int version) { + Lock lock(cl_.getMutex()); + ar& mux_; + ConnectionParam& conn = cl_.getOrNewConnectionUnlocked(mux_); + ar& conn; + } }; -#endif // _SYNCCOMMAND_H +#endif