Bug 1005 - patch: Add GetSocket() methods to applications
patch: Add GetSocket() methods to applications
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: applications
pre-release
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-10 14:41 UTC by Tom Henderson
Modified: 2010-10-15 15:54 UTC (History)
1 user (show)

See Also:


Attachments
proposed patch (2.05 KB, patch)
2010-10-10 14:41 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2010-10-10 14:41:53 UTC
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.
Comment 1 Josh Pelkey 2010-10-13 14:23:57 UTC
+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).
Comment 2 Tom Henderson 2010-10-15 15:54:09 UTC
pushed in changeset 616d42c69f05