相关文章  
  • Linux操作系统编程之Shell问答录
  • 深入浅出分析Linux系统内核漏洞的问题(3)
  • Linux脚本开发数学库在PHP中的重要性(3)
  • Linux脚本开发数学库在PHP中的重要性(2)
  • 简述Linux操作系统文件搜索(下)
  • 用GNUprofiler提高代码运行速度 上
  • 用GNUprofiler提高代码运行速度 下
  • linux的域名解析系统设置
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    学习Linux网络编程之二1

      2.6 实例

      服务器端程序


      /******* 服务器程序 (server.c) ************/
      #include
      #include
      #include
      #include
      #include
      #include
      #include
      #include

      int main(int argc, char *argv[])
      {
      int sockfd,new_fd;
      struct sockaddr_in server_addr;
      struct sockaddr_in client_addr;
      int sin_size,portnumber; 页码:[1] [2] [3] [4] [5]1页、共5页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved