⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net_list.c

📁 刚学VC时写的文件传输程序,全部用SocketAPI编写
💻 C
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -