API for SocketOptions class
This commit is contained in:
1 parent
ddda864b77
commit
0f55fefaba
8 files changed
+111
-50
No files matched your search
@@ -28,6 +28,56 @@ NS_LOG_COMPONENT_DEFINE ("Socket");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
TypeId
|
||||
SocketOptions::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::SocketOptions")
|
||||
.SetParent<Object> ()
|
||||
.AddConstructor<SocketOptions> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
SocketOptions::SocketOptions (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
}
|
||||
|
||||
SocketOptions::~SocketOptions (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SocketOptions::SetSndBuf (uint32_t size)
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketOptions::GetSndBuf (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SocketOptions::SetRcvBuf (uint32_t size)
|
||||
{
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SocketOptions::GetRcvBuf (void) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Socket::Socket (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
Ptr<SocketOptions> s = CreateObject<SocketOptions> ();
|
||||
AggregateObject (s);
|
||||
}
|
||||
|
||||
Socket::~Socket ()
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
|
||||
Reference in new issue
Block a user