#ifndef IPLIST_H #define IPLIST_H #include "def.h" #ifdef WINDOWS #include #else #include #include #include #include #endif typedef struct _iplist{ struct sockaddr_in6 address; struct _iplist *next; }IPLIST; class IpList { private: IPLIST *ipl_head; size_t count; void _Emtpy(); public: IpList() { ipl_head = (IPLIST*)0; count = 0;} ~IpList() { if(ipl_head) _Emtpy(); } int Add(const struct sockaddr_in6* psin); int Pop(struct sockaddr_in6* psin); int IsEmpty() { return count ? 0 : 1; } }; extern IpList IPQUEUE; #endif