Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2197)

Unified Diff: src/applications/model/udp-echo-client.cc

Issue 5975049: UdpEchoClient bugfix and proposed UdpEcho changes (Closed)
Patch Set: Now includes time in seconds Created 11 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/applications/model/udp-echo-server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/applications/model/udp-echo-client.cc
===================================================================
--- a/src/applications/model/udp-echo-client.cc
+++ b/src/applications/model/udp-echo-client.cc
@@ -308,12 +308,12 @@
if (Ipv4Address::IsMatchingType (m_peerAddress))
{
- NS_LOG_INFO ("Client sent " << m_size << " bytes to " <<
+ NS_LOG_INFO ("At time " << Simulator::Now ().GetSeconds () << "s client sent " << m_size << " bytes to " <<
Ipv4Address::ConvertFrom (m_peerAddress) << " port " << m_peerPort);
}
else if (Ipv6Address::IsMatchingType (m_peerAddress))
{
- NS_LOG_INFO ("Client sent " << m_size << " bytes to " <<
+ NS_LOG_INFO ("At time " << Simulator::Now ().GetSeconds () << "s client sent " << m_size << " bytes to " <<
Ipv6Address::ConvertFrom (m_peerAddress) << " port " << m_peerPort);
}
@@ -333,13 +333,13 @@
{
if (InetSocketAddress::IsMatchingType (from))
{
- NS_LOG_INFO ("Client received " << packet->GetSize () << " bytes from " <<
+ NS_LOG_INFO ("At time " << Simulator::Now ().GetSeconds () << "s client received " << packet->GetSize () << " bytes from " <<
InetSocketAddress::ConvertFrom (from).GetIpv4 () << " port " <<
InetSocketAddress::ConvertFrom (from).GetPort ());
}
else if (Inet6SocketAddress::IsMatchingType (from))
{
- NS_LOG_INFO ("Client received " << packet->GetSize () << " bytes from " <<
+ NS_LOG_INFO ("At time " << Simulator::Now ().GetSeconds () << "s client received " << packet->GetSize () << " bytes from " <<
Inet6SocketAddress::ConvertFrom (from).GetIpv6 () << " port " <<
Inet6SocketAddress::ConvertFrom (from).GetPort ());
}
« no previous file with comments | « no previous file | src/applications/model/udp-echo-server.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b