- 博客(24)
- 收藏
- 关注
原创 type.h
/***********************************************************************************************************
2011-08-07 19:00:19
826
原创 ip.h
/**name:jiangtao*WuhanUniversity *Copyright(c)2011 All right reserve*@(#)ip.h 1.0.0 (jiangtao) 2011-8-2*/#ifndef _IP_H#
2011-08-07 18:59:56
665
原创 tcp.h
#ifndef _TCP_H#define _TCP_H#include "m.h"#include "type.h"/*表示tcp11种连接状态的宏定义*/#define CLOSED 0#define LISTEN 1#define SYN
2011-08-07 18:59:29
1235
原创 socket.c
/***********************************************************************************************************
2011-08-07 18:58:37
730
原创 socket.h
/***********************************************************************************************************
2011-08-07 18:58:05
1094
原创 m.h
#ifndef _M_H #define _M_H#include "type.h" #define MLEN 1024 #define MAXSIZE 3 #define BUFSIZE 30 typedef struct m_head {
2011-08-07 18:57:13
684
原创 m.c
#include "m.h"#include "string.h"#include "stdio.h"/******************************************************************************
2011-08-07 18:56:41
583
原创 DHCP.H
#ifndef DHCP_H#define DHCP_Htypedef unsigned char INT8U;typedef unsigned short int WORD; // 16-bit(全局)typedef unsigned
2011-08-07 18:55:58
823
原创 DHCP.C
#define _DHCP_C#define THIS_IS_DHCP#include "DHCP.h"#include "m.h"#include "type.h"#include "socket.h"#include "tcp.h"//#inc
2011-08-07 18:54:20
1985
原创 note
这里他们一共占据的空间并不是4+1+4=9,这里涉及到”对齐原则”,编译器为提供内存访问速度,要保证结构地址满足4字节的对齐要求,所以系统用了4个字节来存放char类型,也即浪费了3个字节的空间,因此,这里总共占据空间为12字节.main(){ int IntV
2011-08-07 18:36:41
642
原创 TEST
#include #includetypedef unsigned char INT8U;#define SIZE (5u)int main(void){ typedef struct DHCP{ int options[20]; i
2011-08-03 11:48:18
443
原创 mbuf
头文件 #ifndef _M_H #define _M_H #define MLEN 1024 #define MAXSIZE 20 #define BUFSIZE 30 typedef struct m_head { struct mbuf
2011-08-01 20:05:23
8657
原创 DHCP客户端实现(初稿)
include "DHCP.h" #define _DHCP_C #define THIS_IS_DHCP #define DHCP_TIMEOUT (TICK)(2L * TICK_SECOND)#defin
2011-08-01 20:01:55
3935
原创 数组赋值
options字段存储设计:****************************************************************************#include #includeint main(void){ int optio
2011-07-31 23:36:08
529
转载 从指针的使用角度看数组与结构体
从指针的使用角度看数组与结构体数组与结构体有什么区别和联系?如果要找到他们的本质联系我们通过什么途径?下面分别通过多维数组和结构体的几个实例来分析两者之间的关系.(一) 一维数组与结构体1. 定义一个一维数组:main(){ int IntValue;//暂时存
2011-07-29 09:23:04
620
原创 宿舍
struct stu { int num; char name [20]; char sex; float score; } boy1,boy2; boy1.num=102; strcpy(boy1.
2011-07-26 23:51:28
747
原创 dhcp.c
/** * @file * Dynamic Host Configuration Protocol client * *//* * * Copyright (c) 2001-2004 Leon Woestenberg * Copyright
2011-07-25 17:32:51
1760
2
原创 dhcp.h
/** @file */#ifndef __LWIP_DHCP_H__#define __LWIP_DHCP_H__#include "lwip/opt.h"#if LWIP_DHCP /* don't build if not configure
2011-07-25 17:31:40
1483
1
原创 代码2
/*********************************************************************** Dynamic Host Configuration Protocol (DHCP) Client* Module for
2011-07-25 17:29:45
702
原创 DHCP代码
/********************************************************************* * * DHCP Module for Modtronix TCP/IP Stack * *******
2011-07-25 17:28:23
2144
原创 网址
http://wenku.baidu.com/view/f05e9fa20029bd64783e2c88.htmlhttp://wenku.baidu.com/view/78ad7b563c1ec5da50e270a2.htmlhttp://wenku.baidu.com/vie
2011-07-20 18:32:15
356
原创 模板
密级:秘密文档编号:D0000-PPA-EBD00001-SD-2010-00014-01 DHCP模块概要设计报告版本:1.0.0-0.0.02009-12-8 东软集团股份有限公司 人才实训中心(版权所有,翻版必究)文件修改控制 修改编号版本
2011-07-20 18:02:59
489
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人