Lines 81-86
UdpEchoServer::StartApplication (void)
|
Link Here
|
---|
|
81 |
{ |
81 |
{ |
82 |
TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory"); |
82 |
TypeId tid = TypeId::LookupByName ("ns3::UdpSocketFactory"); |
83 |
m_socket = Socket::CreateSocket (GetNode (), tid); |
83 |
m_socket = Socket::CreateSocket (GetNode (), tid); |
|
|
84 |
m_socketCreated (m_socket); |
84 |
InetSocketAddress local = InetSocketAddress (Ipv4Address::GetAny (), m_port); |
85 |
InetSocketAddress local = InetSocketAddress (Ipv4Address::GetAny (), m_port); |
85 |
m_socket->Bind (local); |
86 |
m_socket->Bind (local); |
86 |
if (addressUtils::IsMulticast (m_local)) |
87 |
if (addressUtils::IsMulticast (m_local)) |