add Ipv4 and Udp node capabilities, rework Copy methods to include an extra Node * argument

This commit is contained in:
Mathieu Lacage committed 2007-02-12 13:06:05 +01:00
1 parent 96d809c983
commit ea343befaf
22 files changed
+256 -133

No files matched your search

+5 -7
View File
@@ -26,7 +26,6 @@
#include "ns3/packet.h"
#include "ipv4-address.h"
#include "ipv4-l4-protocol.h"
#include "ipv4-end-point-demux.h"
#include "udp-end-point.h"
@@ -34,10 +33,9 @@ namespace ns3 {
class Node;
class Udp : public Ipv4L4Protocol {
class Udp {
public:
Udp (Node *node);
Udp (Udp const &o);
virtual ~Udp ();
UdpEndPoint *Allocate (void);
@@ -52,10 +50,10 @@ public:
Ipv4Address saddr, Ipv4Address daddr,
uint16_t sport, uint16_t dport);
// inherited from Ipv4L4Protocol
virtual Udp* Copy() const;
virtual void Receive(Packet& p,
Ipv4Address const &source,
Ipv4Address const &destination);
Udp* Copy(Node *node) const;
void Receive(Packet& p,
Ipv4Address const &source,
Ipv4Address const &destination);
private:
static const uint8_t UDP_PROTOCOL;
Node *m_node;