Bug 1005

Summary: patch: Add GetSocket() methods to applications
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: applicationsAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: proposed patch

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