易截截图软件、单文件、免安装、纯绿色、仅160KB

c编程 通讯协议http

问个比较弱的问题。
用c开发,服务器和客户端的程序,通讯协议用http。
不知道怎么入手了,是不是socket编程?还是应该看哪些方面的技术
有现成的http库  拿来用
自己写socket麻烦死了

网上找点代码!  自己写能烦死!

引用
有现成的http库  拿来用
自己写socket麻烦死了

谢谢了
现在有哪些http库,比较常用的?

顶一下!

C/C++ code:

#include<iostream>
#include<map>
#include<stdlib.h>
#include<signal.h>
#include<errno.h>
#include<unistd.h>
#include<string.h>
#include<sys/resource.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<fcntl.h>
#include<netinet/in.h>
#include<arpa/inet.h>
#include<sys/socket.h>

#define PORT 80
#define BUFSIZE 8196
#define LISTENQ 64 //

using namespace std;

struct client_t{
int fd;
int state;
unsigned int pois;
string ip;
string read_buf;
string write_buf;

//http request
string method_req;
string url;
string http_v;
string host;
client_t(){
fd=0;
state=0;//读写状态,0-读,1-写
pois=0;
ip.clear();
read_buf.reserve(BUFSIZE);
write_buf.reserve(BUFSIZE);
method_req.clear();


相关问答:

jsp中 <c:if test> 相关问题

在查询后将查询出来的值赋给各输入框
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

两个C文件的问题

以前在VC里面建一个工程,都只用一个 .c 文件,昨天在一个工程里用了两个 .c文件了,遇到问题了,请大家指点。比如:
File1.c Fil ......

能用C/C++简单实现五子棋程序吗?

最近突然想自己来实现一个五子棋程序,但不知道怎么开始,自己也没学画图形函数,能在控制台下直接写吗>>>?????
控制台?比图形界面更麻烦。
http://search.download.csdn.net/search/%E4%BA%94%E5%AD%90% ......

C primer plus 习题求解

该书第四章第五题:
Write a program that requests the user's first name and then the user's last name. Have it print the entered names on one line and the number of letters in each name on t ......

C问题

exit() 和return ;结束的区别和优缺点
我不太明白exit() 它是直接退出程序吗 它下面要是还有函数还能执行吗

void a()
{
  exit();
}
void b()
{
...
}
b能执行吗
  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号