Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1604)

Unified Diff: src/network/model/socket.h

Issue 5791044: Replace references to m_recvpktinfo with method call IsRecvPktInfo() (Closed)
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/internet/model/udp-socket-impl.cc ('k') | src/network/model/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/network/model/socket.h
===================================================================
--- a/src/network/model/socket.h
+++ b/src/network/model/socket.h
@@ -595,10 +595,20 @@
* For IP_PKTINFO/IP6_PKTINFO. This method is only usable for
* Raw socket and Datagram Socket. Not supported for Stream socket.
*
+ * Method doesn't make distinction between IPv4 and IPv6. If it is enabled,
+ * it is enabled for all types of sockets that supports packet information
+ *
* \param flag Enable/Disable receive information
* \returns nothing
*/
void SetRecvPktInfo (bool flag);
+
+ /**
+ * \brief Get status indicating whether enable/disable packet information to socket
+ *
+ * \returns True if packet information should be sent to socket
+ */
+ bool IsRecvPktInfo () const;
protected:
void NotifyConnectionSucceeded (void);
@@ -612,7 +622,7 @@
void NotifyDataRecv (void);
virtual void DoDispose (void);
Ptr<NetDevice> m_boundnetdevice;
- bool m_recvpktinfo;
+ bool m_recvPktInfo;
private:
Callback<void, Ptr<Socket> > m_connectionSucceeded;
Callback<void, Ptr<Socket> > m_connectionFailed;
« no previous file with comments | « src/internet/model/udp-socket-impl.cc ('k') | src/network/model/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b