Add attributes to new abstract base class for UdpSocket
This commit is contained in:
1 parent
b3b6295b30
commit
f4ff3123db
7 files changed
+76
-29
No files matched your search
@@ -30,6 +30,19 @@ 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 ();
|
||||
|
||||
@@ -49,6 +49,8 @@ class Packet;
|
||||
class Socket : public Object
|
||||
{
|
||||
public:
|
||||
// static TypeId GetTypeId (void);
|
||||
|
||||
Socket (void);
|
||||
virtual ~Socket (void);
|
||||
|
||||
|
||||
@@ -29,15 +29,11 @@ class Socket;
|
||||
/**
|
||||
* \brief API to create UDP socket instances
|
||||
*
|
||||
* This abstract class defines the API for UDP sockets.
|
||||
* This class also can hold the global default variables used to
|
||||
* initialize newly created sockets, such as values that are
|
||||
* set through the sysctl or proc interfaces in Linux.
|
||||
|
||||
* This abstract class defines the API for UDP socket factory.
|
||||
* All UDP implementations must provide an implementation of CreateSocket
|
||||
* below.
|
||||
*
|
||||
* \see UdpImpl
|
||||
* \see UdpSocketFactoryImpl
|
||||
*/
|
||||
class UdpSocketFactory : public SocketFactory
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@ def build(bld):
|
||||
'socket-factory.cc',
|
||||
'packet-socket-factory.cc',
|
||||
'packet-socket.cc',
|
||||
'udp-socketx.cc',
|
||||
'udp-socket-factory.cc',
|
||||
'tcp.cc',
|
||||
'ipv4.cc',
|
||||
@@ -57,6 +58,7 @@ def build(bld):
|
||||
'socket.h',
|
||||
'socket-factory.h',
|
||||
'packet-socket-factory.h',
|
||||
'udp-socketx.h',
|
||||
'udp-socket-factory.h',
|
||||
'tcp.h',
|
||||
'ipv4.h',
|
||||
|
||||
Reference in new issue
Block a user