Bugzilla – Full Text Bug Listing |
Summary: | patch: Add GetSocket() methods to applications | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
Component: | applications | Assignee: | ns-bugs <ns-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jpelkey |
Priority: | P5 | ||
Version: | pre-release | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | proposed patch |
+1 from George and Josh. My only thought was maybe adding this as a virtual function to the base class, but I can see from your diff why this doesn't exactly line up with some applications (packet-sink). pushed in changeset 616d42c69f05 |
Created attachment 995 [details] proposed patch There is no easy way to access the underlying socket in our applications (PacketSink, OnOffApplication) to e.g. set socket options. This patch adds GetSocket() methods to OnOffApplication and PacketSink.