Streams out the text form of the IP address to the supplied output stream

Return TypeFunction nameArguments
ostream&operator<<(ostream&,hzIpaddr&,)

Declared and defined in file: hzIpaddr.cpp

Function Logic:

0:START 1:val items items 2:Return os

Function body:

ostream& operator<< (ostream& os)hzIpaddr& op, 
{
   //  Category: Data Output
   //  
   //  Streams out the text form of the IP address to the supplied output stream
   //  
   //  Arguments: 1) os Reference to the output stream
   //     2) op The IP address instance
   //  
   //  Returns: Reference to the supplied output stream
   uint32_t    val ;           //  32-bit IP address value
   char        buf [20];       //  Text formulation buffer
   val = (uint32_t) op ;
   sprintf(buf, "%d.%d.%d.%d", (val & 0xff000000)>>24,(val&0xff0000)>>16,(val&0xff00)>>8,(val&0xff));
   os << buf ;
   return os ;
}