|
Bugzilla – Full Text Bug Listing |
| Summary: | BulkSendApplication not compatible with NSC | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | nsc-tcp | Assignee: | ns-bugs <ns-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | PC | ||
| OS: | Linux | ||
I tried to use BulkSendApplication with NSC and found that it stalled as soon as the send buffer initially filled up. BulkSendApplication::DataSend() is not being called by the NSC implementation. I do not yet know whether an easy fix is to tie this to hook the callback to NotifyDataSent (which is called when the NSC glue code performs a write on the underlying NSC socket): Simulator::ScheduleNow (&NscTcpSocketImpl::NotifyDataSent, this, ret); or whether the fix requires more work (e.g. checking return value of ret = m_nscTcpSocket->send_data ((const char *)buf, size); and acting accordingly).