資源簡介
基于網絡編程實現tcp
代碼片段和文件信息
/*
?*?eunqueue.c
?*
?*??Created?on:?Mar?1?2016
?*??????Author:?peipei
?*Description?:
?*/
#include?“../../iridium_imp/iridium_status.h“
#include?“../../include/log_common.h“
#include?“squeue.h“
#define?SESSION_QUEUE_MAX?15 //計算從傳時間
EQueue*?e_queue_new()
{
EQueue?*queue?=?NULL;
queue?=?S_MALLOC(sizeof(EQueue));
memset(queue?0?sizeof(EQueue));
return?queue;
}
EList*?e_list_new()
{
EList?*list?=?NULL;
if((list?=?malloc(sizeof(EList))))
{
memset(list?0?sizeof(EList));
}
return?list;
}
void?e_node_free(EList?*list)
{
if(list)
{
list->prev?=?NULL;
list->next?=?NULL;
free(list);
}
}
/**
?*?從頭部出隊
?*/
EList?*e_queue_pop_head(EQueue?*queue)
{
EList?*list?=?NULL;
if(queue?&&?queue->head)
{
list?=?queue->head;
if(queue->head->next)
{
queue->head?=?queue->head
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4498??2017-05-23?20:45??tcp\squeue.c
?????文件???????1694??2017-05-23?20:41??tcp\squeue.h
?????文件??????61907??2017-06-21?17:29??tcp\stcp.c
?????文件????????828??2017-06-19?21:31??tcp\stcp.h
?????文件???????6812??2017-06-17?11:38??tcp\stcp_define.h
?????文件???????1617??2017-05-23?20:35??tcp\stcp_status.h
?????文件???????1324??2017-06-17?21:30??tcp\tcp_option.c
?????文件????????359??2017-06-17?20:08??tcp\tcp_option.h
?????目錄??????????0??2017-06-22?10:00??tcp
-----------?---------??----------?-----??----
????????????????79039????????????????????9
- 上一篇:語音播報“您有一條新的訂單”
- 下一篇:Labview創建Excel報表
評論
共有 條評論