src/internet-node/udp-socket.h
changeset 2592 3ebf97150166
parent 1866 e7dbcc4df546
child 2834 1aab57845b07
equal deleted inserted replaced
2591:83a605082fb6 2592:3ebf97150166
    38 {
    38 {
    39 public:
    39 public:
    40   /**
    40   /**
    41    * Create an unbound udp socket.
    41    * Create an unbound udp socket.
    42    */
    42    */
    43   UdpSocket (Ptr<Node> node, Ptr<UdpL4Protocol> udp);
    43   UdpSocket ();
    44   virtual ~UdpSocket ();
    44   virtual ~UdpSocket ();
       
    45 
       
    46   void SetNode (Ptr<Node> node);
       
    47   void SetUdp (Ptr<UdpL4Protocol> udp);
    45 
    48 
    46   virtual enum SocketErrno GetErrno (void) const;
    49   virtual enum SocketErrno GetErrno (void) const;
    47   virtual Ptr<Node> GetNode (void) const;
    50   virtual Ptr<Node> GetNode (void) const;
    48   virtual int Bind (void);
    51   virtual int Bind (void);
    49   virtual int Bind (const Address &address);
    52   virtual int Bind (const Address &address);