Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9383 in orxonox.OLD for branches/proxy/src/lib/network


Ignore:
Timestamp:
Jul 21, 2006, 12:51:19 PM (18 years ago)
Author:
bensch
Message:

much more elaborate host and proxy widgets

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

Legend:

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

    r9360 r9383  
    130130 * @return true if ip _and_ port match.
    131131 */
    132 bool IP::operator==(const IP& ip)
     132bool IP::operator==(const IP& ip) const
    133133{
    134134  return (this->_ip == ip.host() &&
     
    140140 * @brief comparison operator
    141141 * @param ip the IP to compare
    142  * @return true if ip _and_ port do not match.
    143  */
    144 bool IP::operator!=(const IP& ip)
     142 * @return true if ip _or_ port do not match.
     143 */
     144bool IP::operator!=(const IP& ip) const
    145145{
    146146  return (this->_ip != ip.host() ||
  • branches/proxy/src/lib/network/ip.h

    r9360 r9383  
    3030    const IP& operator=(const IP& ip);
    3131    const IP& operator=(const IPaddress& ip);
    32     bool operator==(const IP& ip);
    33     bool operator!=(const IP& up);
     32    bool operator==(const IP& ip) const;
     33    bool operator!=(const IP& up) const;
    3434
    3535    /// RETRIVEAL
Note: See TracChangeset for help on using the changeset viewer.