|
120 |
Callback<void, Ptr<Socket>, |
120 |
Callback<void, Ptr<Socket>, |
121 |
const Address&> newConnectionCreated, |
121 |
const Address&> newConnectionCreated, |
122 |
Callback<void, Ptr<Socket> > closeRequested); |
122 |
Callback<void, Ptr<Socket> > closeRequested); |
123 |
void SetSendCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent); |
123 |
/** |
|
|
124 |
* \brief Notify application when a packet has been sent from transport |
125 |
* protocol (non-standard socket call) |
126 |
* \param dataSent Callback for the event that data is sent from the |
127 |
* underlying transport protocol. This callback is passed a |
128 |
* pointer to the socket, and the number of bytes sent. |
129 |
* |
130 |
* \returns whether or not this socket supports this callback. Note |
131 |
* that this is a non-standard socket call. Some socket |
132 |
* implementations in ns-3 may not support this call, so the |
133 |
* user should check this return value to confirm that the |
134 |
* callback is supported. |
135 |
*/ |
136 |
virtual bool SetDataSentCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent); |
137 |
/** |
138 |
* \brief Notify application when a previously blocked socket (blocked |
139 |
* for writing) has unblocked and has space available |
140 |
* \param sendCb Callback for the event that the socket becomes |
141 |
* unblocked for sending |
142 |
*/ |
143 |
void SetSendCallback (Callback<void, Ptr<Socket> > sendCb); |
124 |
/** |
144 |
/** |
125 |
* \brief Receive data |
145 |
* \brief Receive data |
126 |
* \param receivedData Invoked whenever new data is received. |
146 |
* \param receivedData Invoked whenever new data is received. |
|
232 |
void NotifyNewConnectionCreated (Ptr<Socket> socket, const Address &from); |
252 |
void NotifyNewConnectionCreated (Ptr<Socket> socket, const Address &from); |
233 |
void NotifyCloseRequested (void); |
253 |
void NotifyCloseRequested (void); |
234 |
void NotifyDataSent (uint32_t size); |
254 |
void NotifyDataSent (uint32_t size); |
|
|
255 |
void NotifySend (void); |
235 |
void NotifyDataReceived (Ptr<Packet> p, const Address &from); |
256 |
void NotifyDataReceived (Ptr<Packet> p, const Address &from); |
236 |
|
257 |
|
237 |
Callback<void,Ptr<Socket> > m_closeCompleted; |
258 |
Callback<void,Ptr<Socket> > m_closeCompleted; |
|
242 |
Callback<bool, Ptr<Socket>, const Address &> m_connectionRequest; |
263 |
Callback<bool, Ptr<Socket>, const Address &> m_connectionRequest; |
243 |
Callback<void, Ptr<Socket>, const Address&> m_newConnectionCreated; |
264 |
Callback<void, Ptr<Socket>, const Address&> m_newConnectionCreated; |
244 |
Callback<void, Ptr<Socket>, uint32_t> m_dataSent; |
265 |
Callback<void, Ptr<Socket>, uint32_t> m_dataSent; |
|
|
266 |
Callback<void, Ptr<Socket> > m_sendCb; |
245 |
Callback<void, Ptr<Socket>, Ptr<Packet>,const Address&> m_receivedData; |
267 |
Callback<void, Ptr<Socket>, Ptr<Packet>,const Address&> m_receivedData; |
246 |
}; |
268 |
}; |
247 |
|
269 |
|