View | Details | Raw Unified | Return to bug 1005
Collapse All | Expand All

(-)a/src/applications/onoff/onoff-application.cc (+6 lines)
 Lines 111-116    Link Here 
111
  m_maxBytes = maxBytes;
111
  m_maxBytes = maxBytes;
112
}
112
}
113
113
114
Ptr<Socket>
115
OnOffApplication::GetSocket (void) const
116
{
117
  NS_LOG_FUNCTION (this);
118
  return m_socket;
119
}
114
120
115
void
121
void
116
OnOffApplication::DoDispose (void)
122
OnOffApplication::DoDispose (void)
(-)a/src/applications/onoff/onoff-application.h (+5 lines)
 Lines 102-107    Link Here 
102
   */
102
   */
103
  void SetMaxBytes (uint32_t maxBytes);
103
  void SetMaxBytes (uint32_t maxBytes);
104
104
105
  /**
106
   * \return pointer to associated socket
107
   */
108
  Ptr<Socket> GetSocket (void) const;
109
105
protected:
110
protected:
106
  virtual void DoDispose (void);
111
  virtual void DoDispose (void);
107
private:
112
private:
(-)a/src/applications/packet-sink/packet-sink.cc (+14 lines)
 Lines 75-80    Link Here 
75
  return m_totalRx;
75
  return m_totalRx;
76
}
76
}
77
  
77
  
78
Ptr<Socket>
79
PacketSink::GetListeningSocket (void) const
80
{
81
  NS_LOG_FUNCTION (this);
82
  return m_socket;
83
}
84
85
std::list<Ptr<Socket> >
86
PacketSink::GetAcceptedSockets (void) const
87
{
88
  NS_LOG_FUNCTION (this);
89
  return m_socketList;
90
}
91
78
void PacketSink::DoDispose (void)
92
void PacketSink::DoDispose (void)
79
{
93
{
80
  NS_LOG_FUNCTION (this);
94
  NS_LOG_FUNCTION (this);
(-)a/src/applications/packet-sink/packet-sink.h (-1 / +11 lines)
 Lines 77-83    Link Here 
77
   * \return the total bytes received in this sink app
77
   * \return the total bytes received in this sink app
78
   */
78
   */
79
  uint32_t GetTotalRx () const;
79
  uint32_t GetTotalRx () const;
80
  
80
81
  /**
82
   * \return pointer to listening socket
83
   */
84
  Ptr<Socket> GetListeningSocket (void) const;
85
86
  /**
87
   * \return list of pointers to accepted sockets
88
   */
89
  std::list<Ptr<Socket> > GetAcceptedSockets (void) const;
90
 
81
protected:
91
protected:
82
  virtual void DoDispose (void);
92
  virtual void DoDispose (void);
83
private:
93
private:

Return to bug 1005