首页 » Posts tagged '网络编程'
Tag: 网络编程
[Socket][网络编程]程序范例:Linux下连接WEB服务器
昨天试着在Ubuntu 下用C语言写了一个客户端,用来向WEB服务器上交请求并取回响应报文。
同时,这也是一个通用的基于IPv4的客户端程序例程。
[cpp]
/* socket test on linux main file.
*
* Author: Lesca<http://lesca.me>
* License: GPL
*
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <s... [阅读全文]
近期评论 Recent Comments