Changeset 9442 in orxonox.OLD for branches/proxy
- Timestamp:
- Jul 24, 2006, 5:42:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network/monitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.h
r9438 r9442 57 57 PeerInfo* getFirstChoiceProxy(); 58 58 PeerInfo* getSecondChoiceProxy(); 59 /** @returns the local node */ 60 inline NetworkNode* getLocalNode() const { return this->localNode; }; 59 61 60 62 /** @returns the active proxy server list of the localnode */ -
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9439 r9442 17 17 18 18 #include "network_stats_widget.h" 19 #include "network_monitor.h" 19 20 20 21 #include "multi_type.h" 21 22 22 23 HostWidget::HostWidget(const std::string& name, const IP& ip) 23 : GLGuiBox(OrxGui::Horizontal)24 : GLGuiBox(OrxGui::Horizontal) 24 25 { 25 26 this->setName(name); … … 140 141 */ 141 142 NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor) 142 : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 0))143 : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 0)) 143 144 { 144 145 this->_monitor = monitor; … … 180 181 void NetworkStatsWidget::setMaximum(float max) 181 182 { 182 // this->_bar.setMaximum(max);183 // this->_bar.setMaximum(max); 183 184 } 184 185 … … 199 200 void NetworkStatsWidget::tick(float dt) 200 201 { 201 202 202 assert (this->_monitor->getLocalNode() != NULL); 203 assert(this->_monitor->getLocalNode()->getPeerInfo() != NULL); 204 205 if(this->_monitor->getLocalNode()->getPeerInfo()->connectionMonitor != NULL) 206 { 207 ConnectionMonitor* mon = this->_monitor->getLocalNode()->getPeerInfo()->connectionMonitor; 208 209 this->_upstreamText.setText(MultiType(mon->getOutgoingZippedBandWidth()).getString()); 210 this->_downstreamText.setText(MultiType(mon->getIncomingZippedBandWidth()).getString()); 211 } 203 212 } 204 213 … … 210 219 211 220 void NetworkStatsWidget::showing() 212 { 213 } 221 {} 214 222 215 223 void NetworkStatsWidget::hiding() 216 { 217 } 224 {}
Note: See TracChangeset
for help on using the changeset viewer.