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
|
// constructors
|
||||||
|
|
||||||
CIp::CIp()
|
CIp::CIp(const int af)
|
||||||
{
|
{
|
||||||
::memset(&m_Addr, 0, m_AddrLen = sizeof(struct sockaddr_in));
|
::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)
|
CIp::CIp(const char *sz)
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class CIp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// constructors
|
// constructors
|
||||||
CIp();
|
CIp(const int af = AF_INET);
|
||||||
//CIp(uint8, uint8, uint8, uint8);
|
//CIp(uint8, uint8, uint8, uint8);
|
||||||
CIp(const struct sockaddr_storage *, socklen_t);
|
CIp(const struct sockaddr_storage *, socklen_t);
|
||||||
CIp(const char *);
|
CIp(const char *);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue