• 大小: 5KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: C/C++
  • 标签: c  socket  http  

资源简介

使用C语言Socket实现http协议,端口使用的9000(可以在头文件中修改),可以完成简单的静态网页的浏览,对于图片方面的处理还有待完善。

资源截图

代码片段和文件信息

void send_response(int clientdesc const char *buf)
{
    printf ( “response data: %s\n“ buf ); 
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-03-20 03:10  lhttp\
     文件        6814  2011-03-20 03:06  lhttp\send_response.c
     文件         327  2011-03-19 08:21  lhttp\lhttp.c
     目录           0  2011-03-20 03:10  lhttp\www\
     文件         105  2011-03-20 03:10  lhttp\www\index.htm
     文件         962  2011-03-20 02:43  lhttp\lhttp.h
     文件         409  2011-03-17 09:38  lhttp\Makefile
     文件        1530  2011-03-19 13:09  lhttp\handle_client.c
     文件         100  2011-03-17 07:37  lhttp\.send_response.c
     文件        1297  2011-03-20 01:11  lhttp\create_socket.c

评论

共有 条评论