src/node/inet-socket-address.cc
changeset 1270 1bcaff94bf03
parent 1268 0cd947bd1419
parent 1207 a9f3610bbffa
child 1297 e30ce531faf3
equal deleted inserted replaced
1269:86749c52475a 1270:1bcaff94bf03
    49 InetSocketAddress::IsMatchingType (const Address &address)
    49 InetSocketAddress::IsMatchingType (const Address &address)
    50 {
    50 {
    51   return address.CheckCompatible (GetType (), 6);
    51   return address.CheckCompatible (GetType (), 6);
    52 }
    52 }
    53 
    53 
       
    54 InetSocketAddress::operator Address () const
       
    55 {
       
    56   return ConvertTo ();
       
    57 }
       
    58 
    54 Address 
    59 Address 
    55 InetSocketAddress::ConvertTo (void) const
    60 InetSocketAddress::ConvertTo (void) const
    56 {
    61 {
    57   uint8_t buf[6];
    62   uint8_t buf[6];
    58   m_ipv4.Serialize (buf);
    63   m_ipv4.Serialize (buf);