Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9443 in orxonox.OLD


Ignore:
Timestamp:
Jul 24, 2006, 5:47:06 PM (18 years ago)
Author:
bensch
Message:

ip-bug fixed

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/ip.cc

    r9441 r9443  
    111111IP::IP(unsigned int first, unsigned int second, unsigned int third, unsigned int fourth, int port)
    112112{
    113   this->_host = (first << 24) +
    114                 (second << 16) +
    115                 (third <<  8) +
    116                 fourth;
     113  this->_host = (fourth << 24) +
     114                (third << 16) +
     115                (second <<  8) +
     116                (first);
    117117  this->_port = port;
    118118}
     
    270270
    271271#warning ip and ports are not handled correctly
    272 //   if (port != -1)
    273 //     addr += ":" + MultiType(port).getString();
     272  //   if (port != -1)
     273  //     addr += ":" + MultiType(port).getString();
    274274  return addr;
    275275}
  • branches/proxy/src/lib/network/monitor/network_stats_widget.cc

    r9442 r9443  
    141141 */
    142142NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor)
    143     : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 0))
     143    : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 1))
    144144{
    145145  this->_monitor = monitor;
Note: See TracChangeset for help on using the changeset viewer.