src/internet/model/udp-socket-impl.cc
changeset 7256 b04ba6772f8c
parent 7222 bcee1d4b5bc3
child 7321 21678ba057ef
--- a/src/internet/model/udp-socket-impl.cc	Sun May 22 23:17:41 2011 -0700
+++ b/src/internet/model/udp-socket-impl.cc	Sun May 22 23:18:47 2011 -0700
@@ -225,7 +225,7 @@
 }
 
 int
-UdpSocketImpl::Connect(const Address & address)
+UdpSocketImpl::Connect (const Address & address)
 {
   NS_LOG_FUNCTION (this << address);
   InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
@@ -306,7 +306,7 @@
   NS_LOG_FUNCTION (this << p << dest << port);
   if (m_boundnetdevice)
     {
-      NS_LOG_LOGIC("Bound interface number " << m_boundnetdevice->GetIfIndex());
+      NS_LOG_LOGIC ("Bound interface number " << m_boundnetdevice->GetIfIndex ());
     }
   if (m_endPoint == 0)
     {
@@ -394,7 +394,7 @@
           // Check if interface-bound socket
           if (m_boundnetdevice) 
             {
-              if (ipv4->GetNetDevice(i) != m_boundnetdevice)
+              if (ipv4->GetNetDevice (i) != m_boundnetdevice)
                 continue;
             }
           Ipv4Mask maski = iaddr.GetMask ();
@@ -421,15 +421,15 @@
             }
         }
       NS_LOG_LOGIC ("Limited broadcast end.");
-      return p->GetSize();
+      return p->GetSize ();
     }
-  else if (m_endPoint->GetLocalAddress() != Ipv4Address::GetAny())
+  else if (m_endPoint->GetLocalAddress () != Ipv4Address::GetAny ())
     {
-      m_udp->Send(p->Copy (), m_endPoint->GetLocalAddress(), dest,
-                  m_endPoint->GetLocalPort(), port, 0);
+      m_udp->Send (p->Copy (), m_endPoint->GetLocalAddress (), dest,
+                   m_endPoint->GetLocalPort (), port, 0);
       NotifyDataSent (p->GetSize ());
       NotifySend (GetTxAvailable ());
-      return p->GetSize();
+      return p->GetSize ();
     }
   else if (ipv4->GetRoutingProtocol () != 0)
     {
@@ -463,7 +463,7 @@
           m_udp->Send (p->Copy (), header.GetSource (), header.GetDestination (),
                        m_endPoint->GetLocalPort (), port, route);
           NotifyDataSent (p->GetSize ());
-          return p->GetSize();
+          return p->GetSize ();
         }
       else 
         {
@@ -517,7 +517,7 @@
 UdpSocketImpl::Recv (uint32_t maxSize, uint32_t flags)
 {
   NS_LOG_FUNCTION (this << maxSize << flags);
-  if (m_deliveryQueue.empty() )
+  if (m_deliveryQueue.empty () )
     {
       m_errno = ERROR_AGAIN;
       return 0;
@@ -561,13 +561,13 @@
   NS_LOG_FUNCTION_NOARGS ();
   if (m_endPoint != 0)
     {
-      address = InetSocketAddress (m_endPoint->GetLocalAddress (), m_endPoint->GetLocalPort());
+      address = InetSocketAddress (m_endPoint->GetLocalAddress (), m_endPoint->GetLocalPort ());
     }
   else
     {
       // It is possible to call this method on a socket without a name
       // in which case, behavior is unspecified
-      address = InetSocketAddress(Ipv4Address::GetZero(), 0);
+      address = InetSocketAddress (Ipv4Address::GetZero (), 0);
     }
   return 0;
 }