《网络编程实用教程第2章.pptVIP

  • 10
  • 0
  • 约2.27万字
  • 约 92页
  • 2016-12-30 发布于北京
  • 举报
#include sys/types.h #include sys/socket.h #include netinet/in.h #include netdb.h #include stdio.h #include string.h #define PROTOPORT 5188 /* 监听套接字的缺省协议端口号 */ #define QLEN 6 /* 监听套接字的请求队列大小 */ int visits = 0; /* 对于客户连接的计数*/ Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. main(argc,argc) int argc; char* argv[]; { struct hostent *ptrh; /* 指向主机列表中一个条目的指针 */ struct sockaddr_in servaddr; /* 存放服务器网络地址的结构 */ struct sockaddr_in clientaddr; /* 存放客户网络地址的结构 */ int list

文档评论(0)

1亿VIP精品文档

相关文档