/[resiprocate]/main/resip/stack/Tuple.hxx
ViewVC logotype

Diff of /main/resip/stack/Tuple.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11152 by sgodin, Sun Feb 23 21:29:34 2014 UTC revision 11153 by dpetrie, Wed Apr 23 17:25:02 2014 UTC
# Line 68  Line 68 
68              int port,              int port,
69              IpVersion ipVer,              IpVersion ipVer,
70              TransportType type=UNKNOWN_TRANSPORT,              TransportType type=UNKNOWN_TRANSPORT,
71              const Data& targetDomain = Data::Empty);              const Data& targetDomain = Data::Empty,
72                const Data& netNs = Data::Empty);
73    
74        Tuple(const Data& printableAddress,        Tuple(const Data& printableAddress,
75              int port,              int port,
76              TransportType type,              TransportType type,
77              const Data& targetDomain = Data::Empty);              const Data& targetDomain = Data::Empty,
78                const Data& netNs = Data::Empty);
79    
80        Tuple(const in_addr& pipv4,        Tuple(const in_addr& pipv4,
81              int pport,              int pport,
82              TransportType ptype,              TransportType ptype,
83              const Data& targetDomain = Data::Empty);              const Data& targetDomain = Data::Empty,
84                const Data& netNs = Data::Empty);
85    
86        Tuple(const sockaddr& addr,        Tuple(const sockaddr& addr,
87              TransportType ptype,              TransportType ptype,
# Line 95  Line 98 
98        Tuple(const in6_addr& pipv6,          Tuple(const in6_addr& pipv6,  
99              int pport,              int pport,
100              TransportType ptype,              TransportType ptype,
101              const Data& targetDomain = Data::Empty);              const Data& targetDomain = Data::Empty,
102                const Data& netNs = Data::Empty);
103  #endif  #endif
104                
105        /// @brief Retrieve a const binary representation of the socket address        /// @brief Retrieve a const binary representation of the socket address
# Line 239  Line 243 
243           return mTargetDomain;           return mTargetDomain;
244        }        }
245                
246          /// @brief Set the netns (network namespace) for this Tuple
247          void setNetNs(const Data& netNs)
248          {
249              mNetNs = netNs;
250          }
251    
252          /// @brief Get the netns for this Tuple
253          const Data& getNetNs() const
254          {
255              return(mNetNs);
256          }
257    
258        /**        /**
259           @brief Creates a 32-bit hash based on the contents of this Tuple.           @brief Creates a 32-bit hash based on the contents of this Tuple.
260        */        */
# Line 259  Line 275 
275        TransportType mTransportType;        TransportType mTransportType;
276        Data mTargetDomain;        Data mTargetDomain;
277    
278          Data mNetNs;  ///< The network namespace to which the address and port are scoped
279    
280        friend EncodeStream& operator<<(EncodeStream& strm, const Tuple& tuple);        friend EncodeStream& operator<<(EncodeStream& strm, const Tuple& tuple);
281        friend class DnsResult;        friend class DnsResult;
282  };  };

Legend:
Removed from v.11152  
changed lines
  Added in v.11153

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27