mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
CIp::CIp() -> CIp::CIp(const int af=AF_INET)
This is added for CIp(AF_UNSPEC), uninitialized CIp state. CIp() is same as CIp(AF_INET) to have backward compatibility (the default value of CIp() is 0.0.0.0 IPv4 address).
This commit is contained in:
parent
358911ec68
commit
7ecc62cf42
|
|
@ -31,10 +31,10 @@
|
|||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// constructors
|
||||
|
||||
CIp::CIp()
|
||||
CIp::CIp(const int af)
|
||||
{
|
||||
::memset(&m_Addr, 0, m_AddrLen = sizeof(struct sockaddr_in));
|
||||
m_Addr.ss_family = AF_INET;
|
||||
m_Addr.ss_family = af;
|
||||
}
|
||||
|
||||
CIp::CIp(const char *sz)
|
||||
|
|
|
|||
Loading…
Reference in a new issue