merge with ns-3-dev
This commit is contained in:
1 parent
27925e7cb0
commit
78aa8143d1
7 files changed
+90
-100
No files matched your search
+66
-77
@@ -30,19 +30,6 @@ NS_LOG_COMPONENT_DEFINE ("Socket");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
#if 0
|
||||
TypeId
|
||||
Socket::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Socket")
|
||||
.SetParent<Object> ()
|
||||
.AddConstructor<Socket> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Socket::Socket (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
@@ -266,42 +253,14 @@ Socket::NotifyDataRecv (void)
|
||||
}
|
||||
}
|
||||
|
||||
/***************************************************************
|
||||
* Socket Tags
|
||||
***************************************************************/
|
||||
|
||||
SocketRxAddressTag::SocketRxAddressTag ()
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketRxAddressTag::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = ns3::Tag::AllocateUid<SocketRxAddressTag> ("SocketRxAddressTag.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
void
|
||||
SocketRxAddressTag::Print (std::ostream &os) const
|
||||
{
|
||||
os << "address="<< m_address;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketRxAddressTag::GetSerializedSize (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SocketRxAddressTag::Serialize (Buffer::Iterator i) const
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketRxAddressTag::Deserialize (Buffer::Iterator i)
|
||||
{
|
||||
// for local use in stack only
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SocketRxAddressTag::SetAddress (Address addr)
|
||||
{
|
||||
@@ -314,42 +273,41 @@ SocketRxAddressTag::GetAddress (void) const
|
||||
return m_address;
|
||||
}
|
||||
|
||||
|
||||
TypeId
|
||||
SocketRxAddressTag::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::SocketRxAddressTag")
|
||||
.SetParent<Tag> ()
|
||||
.AddConstructor<SocketRxAddressTag> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
SocketRxAddressTag::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
uint32_t
|
||||
SocketRxAddressTag::GetSerializedSize (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
void
|
||||
SocketRxAddressTag::Serialize (TagBuffer i) const
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
void
|
||||
SocketRxAddressTag::Deserialize (TagBuffer i)
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
|
||||
SocketIpTtlTag::SocketIpTtlTag ()
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketIpTtlTag::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = ns3::Tag::AllocateUid<SocketIpTtlTag> ("SocketIpTtlTag.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
void
|
||||
SocketIpTtlTag::Print (std::ostream &os) const
|
||||
{
|
||||
os << "ttl="<< m_ttl;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketIpTtlTag::GetSerializedSize (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SocketIpTtlTag::Serialize (Buffer::Iterator i) const
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketIpTtlTag::Deserialize (Buffer::Iterator i)
|
||||
{
|
||||
// for local use in stack only
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SocketIpTtlTag::SetTtl (uint8_t ttl)
|
||||
{
|
||||
@@ -362,4 +320,35 @@ SocketIpTtlTag::GetTtl (void) const
|
||||
return m_ttl;
|
||||
}
|
||||
|
||||
|
||||
TypeId
|
||||
SocketIpTtlTag::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::SocketIpTtlTag")
|
||||
.SetParent<Tag> ()
|
||||
.AddConstructor<SocketIpTtlTag> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
SocketIpTtlTag::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
uint32_t
|
||||
SocketIpTtlTag::GetSerializedSize (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
void
|
||||
SocketIpTtlTag::Serialize (TagBuffer i) const
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
void
|
||||
SocketIpTtlTag::Deserialize (TagBuffer i)
|
||||
{
|
||||
// for local use in stack only
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user