Beej的网络编程入门教程 第一篇 版权与目录

    Beej's Guide to Network Programming翻译稿第一篇 版权及目录

 

    今天是2010年的大年初一,今年我没能回家过新年(过年的城市就像平日里的农村一样安静!),先给您(各位读者)拜个年:祝您在新的一年里心想事成!恭喜发财,恭喜发财!

    我个人遇到程序设计方面的问题一般能在CSDN中找的答案,如果找不到可以求助论坛里的热心网友,他们无私的帮助总是那么让人感动。我接触网络程序编写有一段时间了,在学习过程中走了不少弯路。几个月之前找的了这本教程《beej's guid to network programming》其内容基础而丰富,个人认为这是入门级网络程序员必备参考书。在这里我把它分享给大家,真诚的希望您能看到和喜欢!

     这个优秀的教程其版权信息如下:

Beej's Guide to Network Programming is Copyright © 2009 Brian "Beej Jorgensen" Hall.

With specific exceptions for source code and translations, below, this work is licensed under the Creative Commons Attribution- Noncommercial- No Derivative Works 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

One specific exception to the "No Derivative Works" portion of the license is as follows: this guide may be freely translated into any language, provided the translation is accurate, and the guide is reprinted in its entirety. The same license restrictions apply to the translation as to the original guide. The translation may also include the name and contact information for the translator.

The C source code presented in this document is hereby granted to the public domain, and is completely free of any license restriction.

Educators are freely encouraged to recommend or supply copies of this guide to their students.

Contact for more information.

    我做这件事纯粹是公益行为,如果那位读者发现此翻译文档有不当之处请留言或者email:luck_wei@live.cn我,千万不要骂我(开个玩笑,当然可以了那是你的权利。)。可以访问:http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html查看原文。

    为了便于翻译我对原文档做了少许修改(去掉了一些与程序设计无关的内容包括翻译分发注意事项等等。),例如:原文中的说明部分仅保留了平台和编译器、注意事项两个部分内容。

    另外我计划此材料翻译到第六章(如果你能掌握到第六章已经算是一个合格的初级网络程序员了,这不是我说的是本文原作者说的。),一周出一篇翻译稿,估计需要1-2个月的时间能完成。下面先把目录列出来。

目  录

 

1.基础知识

  1.1.平台与编译器 

  1.2.注意事项

2.什么是套接字

  2.1.两种互联网套接字

  2.2.基础网络理论知识

3.IP地址,结构和数据处理

  3.1.IP地址IPV与IPV6

  3.2.字节序

  3.3.结构

  3.4.再论IP地址

4.从IPV4到IPV6

5.必要的系统调用

  5.1.getaddrinfo()---我要准备开始了!

  5.2.socket()---获得文件描述符(在windows系统下叫套接字句柄)!

  5.3.bind()---我要使用哪个端口?

  5.4.connect()---嗨!是你吗?

  5.5.listen()---有人喊我吗?

  5.6.accept()---谢谢在3490端口喊我。

  5.7.send()和recv()---伙计聊聊。

  5.8.sendto()和recvfrom()---伙计用DGRAM语言聊聊。

  5.9.close()和shutdown()---再见。

  5.10.getpeername()---你是谁?

  5.11.gethostname()---我是谁?

6.客户机-服务器结构

  6.1.一个简单的流式服务器

  6.2.一个简单的流式客户机

  6.3.数据报套接字

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值