Changeset 9444 in orxonox.OLD for branches/proxy/src
- Timestamp:
- Jul 25, 2006, 8:15:01 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9443 r9444 20 20 21 21 #include "multi_type.h" 22 23 #include "shell_command.h" 24 25 // SHELL_COMMAND(gui, NetworkMonitor, toggleGUI) 26 // ->setAlias("ProxyGui"); 27 22 28 23 29 HostWidget::HostWidget(const std::string& name, const IP& ip) -
branches/proxy/src/lib/network/peer_info.cc
r9406 r9444 54 54 55 55 56 std::stringPeerInfo::getNodeTypeString()56 const std::string& PeerInfo::getNodeTypeString() 57 57 { 58 return nodeNames[this->nodeType]; 59 /* 58 60 switch( this->nodeType) 59 61 { … … 68 70 } 69 71 70 return std::string("node is uninit"); 72 return std::string("node is uninit");*/ 71 73 } 74 75 const std::string PeerInfo::nodeNames[] = 76 { 77 78 "maser server", 79 "proxy server active", 80 "proxy server passive", 81 "client", 82 "node is not initialized" 83 }; -
branches/proxy/src/lib/network/peer_info.h
r9435 r9444 27 27 inline bool isClient() const { return this->nodeType == NET_CLIENT; } 28 28 29 std::string getNodeTypeString(); 29 const std::string& getNodeTypeString(); 30 30 31 31 32 … … 41 42 int lastAckedState; //!< last acked state synchronized state 42 43 int lastRecvedState; //!< last received state 44 45 static const std::string nodeNames[]; 46 43 47 }; 44 48 -
branches/proxy/src/lib/network/zip.h
r8623 r9444 21 21 22 22 //! A class for compressing/uncompressing packes. 23 class Zip 23 class Zip 24 24 { 25 25 public: … … 27 27 /** @returns a Pointer to the only object of this Class */ 28 28 inline static Zip* getInstance(void) { if (!singletonRef) singletonRef = new Zip(); return singletonRef; }; 29 29 30 30 int loadDictionary( std::string name ); 31 31 int zip( byte * from, int fromLength, byte * to, int maxLength, int dict = 0 ); 32 32 int unZip( byte * from, int fromLength, byte * to, int maxLength ); 33 33 34 34 int getDictCount(){ return dicts.size(); } 35 35 … … 37 37 Zip(); 38 38 static Zip* singletonRef; 39 39 40 40 std::vector<DictionaryEntry> dicts; 41 41 }; 42 42 43 #endif /* _ PROTO_SINGLETON_H */43 #endif /* _ZIP_H */
Note: See TracChangeset
for help on using the changeset viewer.