added qse_initnwadwithip4ad(), qse_initnwadwithip6ad()
added SocketAddress::ipaddrToStrBuf()
This commit is contained in:
@ -87,6 +87,14 @@ public:
|
||||
qse_mchar_t* toStrBuf (qse_mchar_t* buf, qse_size_t len) const QSE_CPP_NOEXCEPT;
|
||||
qse_wchar_t* toStrBuf (qse_wchar_t* buf, qse_size_t len) const QSE_CPP_NOEXCEPT;
|
||||
|
||||
static qse_mchar_t* ip4addrToStrBuf (const qse_ip4ad_t* ipaddr, qse_mchar_t* buf, qse_size_t len);
|
||||
static qse_mchar_t* ip4addrToStrBuf (qse_uint32_t ipaddr, qse_mchar_t* buf, qse_size_t len);
|
||||
static qse_mchar_t* ip6addrToStrBuf (const qse_ip6ad_t* ipaddr, qse_mchar_t* buf, qse_size_t len);
|
||||
|
||||
static qse_wchar_t* ip4addrToStrBuf (const qse_ip4ad_t* ipaddr, qse_wchar_t* buf, qse_size_t len);
|
||||
static qse_wchar_t* ip4addrToStrBuf (qse_uint32_t ipaddr, qse_wchar_t* buf, qse_size_t len);
|
||||
static qse_wchar_t* ip6addrToStrBuf (const qse_ip6ad_t* ipaddr, qse_wchar_t* buf, qse_size_t len);
|
||||
|
||||
protected:
|
||||
qse_skad_t skad;
|
||||
};
|
||||
|
@ -204,6 +204,19 @@ struct qse_skad_t
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
QSE_EXPORT void qse_initnwadwithip4ad (
|
||||
qse_nwad_t* nwad,
|
||||
qse_uint16_t port,
|
||||
const qse_ip4ad_t* ipad
|
||||
);
|
||||
|
||||
QSE_EXPORT void qse_initnwadwithip6ad (
|
||||
qse_nwad_t* nwad,
|
||||
qse_uint16_t port,
|
||||
const qse_ip6ad_t* ipad,
|
||||
qse_uint32_t scopeid
|
||||
);
|
||||
|
||||
QSE_EXPORT int qse_nwadequal (
|
||||
const qse_nwad_t* x,
|
||||
const qse_nwad_t* y
|
||||
|
Reference in New Issue
Block a user