鏈表如下:
struct ipaddr_t
{
int size;
char* ipaddr
};
struct msg_t
{
int size;
char* msg;
};
struct node_t
{
int port;
struct ipaddr_t* ipaddr_h;
struct msg_t* msg;
struct node_t* next;
};
http://www.cnblogs.com/scrat/archive/2012/08/14/2638740.html