src/internet-node/udp-socket.h
changeset 1866 e7dbcc4df546
parent 1317 82629189efff
child 2592 3ebf97150166
equal deleted inserted replaced
1865:829dc1815014 1866:e7dbcc4df546
    49   virtual int Bind (const Address &address);
    49   virtual int Bind (const Address &address);
    50   virtual int Close (void);
    50   virtual int Close (void);
    51   virtual int ShutdownSend (void);
    51   virtual int ShutdownSend (void);
    52   virtual int ShutdownRecv (void);
    52   virtual int ShutdownRecv (void);
    53   virtual int Connect(const Address &address);
    53   virtual int Connect(const Address &address);
    54   virtual int Send (const Packet &p);
    54   virtual int Send (Ptr<Packet> p);
    55   virtual int SendTo(const Address &address,const Packet &p);
    55   virtual int SendTo(const Address &address,Ptr<Packet> p);
    56 
    56 
    57 private:
    57 private:
    58 
    58 
    59 private:
    59 private:
    60   friend class Udp;
    60   friend class Udp;
    61   // invoked by Udp class
    61   // invoked by Udp class
    62   int FinishBind (void);
    62   int FinishBind (void);
    63   void ForwardUp (const Packet &p, Ipv4Address ipv4, uint16_t port);
    63   void ForwardUp (Ptr<Packet> p, Ipv4Address ipv4, uint16_t port);
    64   void Destroy (void);
    64   void Destroy (void);
    65   int DoSend (const Packet &p);
    65   int DoSend (Ptr<Packet> p);
    66   int DoSendTo (const Packet &p, const Address &daddr);
    66   int DoSendTo (Ptr<Packet> p, const Address &daddr);
    67   int DoSendTo (const Packet &p, Ipv4Address daddr, uint16_t dport);
    67   int DoSendTo (Ptr<Packet> p, Ipv4Address daddr, uint16_t dport);
    68 
    68 
    69   Ipv4EndPoint *m_endPoint;
    69   Ipv4EndPoint *m_endPoint;
    70   Ptr<Node> m_node;
    70   Ptr<Node> m_node;
    71   Ptr<UdpL4Protocol> m_udp;
    71   Ptr<UdpL4Protocol> m_udp;
    72   Ipv4Address m_defaultAddress;
    72   Ipv4Address m_defaultAddress;