|
Bugzilla – Full Text Bug Listing |
| Summary: | Multiple TCP socket entries | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Konstantinos Katsaros <dinos.katsaros> |
| Component: | tcp | Assignee: | Brian Swenson <bswenson3> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs, tommaso.pecorella |
| Priority: | P5 | ||
| Version: | ns-3.19 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | patch | ||
|
Description
Konstantinos Katsaros
2014-01-09 17:07:05 UTC
Created attachment 1756 [details]
patch
Actually I was wrong (partially).
The socket is copied in the right way when there's fork.
Still, the sockets are duplicated if one uses the Tcp "way":
Ptr<SocketFactory> sockFactory0 = node0->GetObject<TcpSocketFactory> ();
Ptr<Socket> server = sockFactory0->CreateSocket ();
The proposed patch fixes this.
T.
10697:323f8bb2ec61 Thanks for bug fix! |