< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

[reSIProcate] What is a Tuple when used in this context?


Roland Zheng wrote:

In the tuple.cxx, when call

Tuple::Tuple(const Data& printableAddr,

int port,

IpVersion ipVer,

TransportType type,

const Data& targetDomain) :

Only the m_anonv4 or m_anonv6 get initialized, the mSockaddr is invalid.

But in tuple.hxx, getSockaddr() use mSockaddr as return value.

This will cause problem, I think inside Tuple::Tuple(…) we should copy m_anonv? to mSockAddr.

Roland

What exactly IS a Tuple? I'va always known tuples to be sets of numbers in an array or
perhaps a dictionary of sorts... what does it mean in THIS case?