摘要: http://wenku.baidu.com/view/0803b63610661ed9ad51f32b.html一、编写Linux下socket协议TCP的ClientServer程序 客户端,client: #include#include#include#include#include#include#define MAXBUF 256int main(){ int ssock; int clen; struct sockaddr_in server_addr; char buf[MAXBUF]; if((ssock=socket(PF_INET,SOCK_STREA... 阅读全文
posted @ 2013-09-03 16:54 星语160523 阅读(664) 评论(0) 推荐(0) 编辑