net_list.c

来自「刚学VC时写的文件传输程序,全部用SocketAPI编写」· C语言 代码 · 共 37 行

C
37
字号
#ifndef	__NET_LIST_C__
#define	__NET_LIST_C__


#include "net_list.h"
#include "TransferFile.h"


PCONNECT_LIST		net_Connection_List = NULL;

void net_InsertItemIntoConnectList(LPVOID p)//(PCONNECT_LIST item)
{
//	if (!net_Connection_List)
//	{
	//	net_Connection_List = malloc(sizeof(CONNECT_LIST));
	//	memcpy(&net_Connection_List->addr, &item->addr, sizeof(SOCKADDR_IN));
	//	net_Connection_List->sock = item->sock;
	//	net_Connection_List->next = NULL;
//	}

/*
	else
	{
		PCONNECT_LIST p = net_Connection_List, pt = NULL;
		while (p)
		{
			pt = p;
			p = p->next;
		}
		p->next = item;
	}
*/
}



#endif	//__NET_LIST_C__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?