|
Bugzilla – Full Text Bug Listing |
| Summary: | UDP sockets need to set connected state before notifying the ConnectionSucceeded callback | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | internet | Assignee: | George Riley <riley> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, smarotta, tommaso.pecorella |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Tom Henderson
2011-06-28 02:15:51 UTC
I don't see any drawbacks and any reason we shouldn't do it. After all if the user will check the connection state right in the Notify (kinda stupid imho, but they could), they'd find it not yet connected. So for consistency it seems quite reasonable. +1 fixed: changeset 21678ba057ef (In reply to comment #1) > I don't see any drawbacks and any reason we shouldn't do it. After all if the > user will check the connection state right in the Notify (kinda stupid imho, > but they could), they'd find it not yet connected. > > So for consistency it seems quite reasonable. > > +1 It's not just for consistency. If you try to send data on a Socket whose m_connected is false, it doesn't work. |