X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2FsyncConnectionCommand.h;h=282f39267ddd8333eec197dc490e944953e268f5;hp=0c2eb431aafb5f749b95a279f468d466a50d01ec;hb=ef0cacf2508418915d3f64b04003be3c13fed3cc;hpb=ece844834d2cecc028ce81ca283f5d441088580e diff --git a/src/syncConnectionCommand.h b/src/syncConnectionCommand.h index 0c2eb43..282f392 100644 --- a/src/syncConnectionCommand.h +++ b/src/syncConnectionCommand.h @@ -11,7 +11,7 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner * * This file is part of Anytun. @@ -42,23 +42,22 @@ 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; + } };