{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

UNIX网络编程 卷1 套接字联网API(第3版)

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

UNIX网络编程 卷1 套接字联网API(第3版)

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

《UNIX网络编程 卷1 套接字联网API(第3版)》是一部传世之作!网络编程专家Bill Fenner和Andrew M. Rudoff应邀执笔,对W. Richard Stevens的经典作品进行修订。书中吸纳了近几年网络技术的发展,增添了IPv6、SCTP协议和密钥管理套接字等内容,深入讨论了关键标准、实现和技术。
书中的所有示例都是在UNIX系统上测试通过的真实的、可运行的代码,继承了Stevens一直强调的理念:“学习网络编程的方法就是下载这些程序,对其进行修改和改进。只有这样实际编写代码才能深入理解有关概念和方法。”读者可以从本书网站下载这些示例的源代码。
本书为UNIX网络编程提供全面的指导,是网络研究和开发人员公认的参考书,无论网络编程的初学者还是网络专家都会大受裨益。
Content Description

《UNIX网络编程 卷1 套接字联网API(第3版)》是一部UNIX网络编程的经典之作!书中全面深入地介绍了如何使用套接字API进行网络编程。全书不但介绍了基本编程内容,还涵盖了与套接字编程相关的高级主题,对于客户/服务器程序的各种设计方法也作了完整的探讨,还深入分析了流这种设备驱动机制。
本书几乎每章都提供精选的习题,并提供了部分习题的答案,是网络研究和开发人员理想的参考书。
Author Description

W. Richard Stevens(1951—1999),国际知名的UNIX和网络专家,备受赞誉的技术作家。生前著有《TCP/IP详解》(三卷)、《UNIX环境高级编程》和《UNIX网络编程》(两卷),均为不朽的经典著作。

Bill Fenner,ATT实验室主任研究员,专攻IP多播、网络管理和测量,他是IETF路由的领域主管之一,是RFC标准文档的批准人。

Andrew M. Rudoff,Sun公司软件工程师,专攻网络、操作系统内核、文件系统和高可用性软件体系结构。
Comments

★“所有人都非常期待这本书,因为它完美地结合了实践经验、历史视角以及在本领域浸淫多年才能获得的透彻理解。阅读本书是一种享受,我收获颇丰。相信大家一定会有同感。”
——Sam Leffler

★“这只是网络编程的参考书。25年来我一直依赖它。这本书描述简洁、详细,而且示例代码对于启动任何网络项目都依然有生命力。走过硅谷的任何工程办公室,你都会发现至少有一本这本书在书架上。Stevens是网络编程领域的Knuth(高德纳)。”
——Richard L Davis Jr

★“没什么可说的,这是一本经典著作!任何渴望深入理解C语言网络编程的人都不能没有这本书。”
——Blue Chip “MAC”

★“这部著作在计算机科学领域里的传奇得以延续,Bill Fenner和Andrew Rudoff居功至伟。”
——Art Sedighi

★“这套书是学习网络编程的书。远超群伦。”
——S. Devasundaram

★“这本书不会让你一夜之间成为专家,但它终究会让你成为专家。”
——John Nguyen
Catalogue

第一部分简介和TCP/IP
第1章简介 2
1.1概述 2
1.2一个简单的时间获取客户程序 5
1.3协议无关性 9
1.4错误处理:包裹函数 10
1.5一个简单的时间获取服务器程序 12
1.6本书中客户/服务器程序示例索引表 14
1.7OSI模型 16
1.8BSD网络支持历史 17
1.9测试用网络及主机 19
1.10Unix标准 22
1.1164位体系结构 24
1.12小结 25
习题 25
第2章传输层:TCP、UDP和SCTP 27
2.1概述 27
2.2总图 27
2.3用户数据报协议(UDP) 29
2.4传输控制协议(TCP) 30
2.5流控制传输协议(SCTP) 31
2.6TCP连接的建立和终止 31
2.7TIME_WAIT状态 37
2.8SCTP关联的建立和终止 38
2.9端口号 42
2.10TCP端口号与并发服务器 43
2.11缓冲区大小及限制 45
2.12标准因特网服务 50
2.13常见因特网应用的协议使用 51
2.14小结 52
习题 53
第二部分基本套接字编程
第3章套接字编程简介 56
3.1概述 56
3.2套接字地址结构 56
3.3值—结果参数 61
3.4字节排序函数 63
3.5字节操纵函数 66
3.6inet_aton、inet_addr和inet_ntoa函数 67
3.7inet_pton和inet_ntop函数 68
3.8sock_ntop和相关函数 70
3.9readn、writen和readline函数 72
3.10小结 76
习题 76
第4章基本TCP套接字编程 77
4.1概述 77
4.2socket函数 77
4.3connect函数 80
4.4bind函数 81
4.5listen函数 84
4.6accept函数 88
4.7fork和exec函数 90
4.8并发服务器 91
4.9close函数 93
4.10getsockname和getpeername函数 94
4.11小结 96
习题 96
第5章TCP客户/服务器程序示例 97
5.1概述 97
5.2TCP回射服务器程序:main函数 97
5.3TCP回射服务器程序:str_echo函数 98
5.4TCP回射客户程序:main函数 99
5.5TCP回射客户程序:str_cli函数 100
5.6正常启动 101
5.7正常终止 102
5.8POSIX信号处理 103
5.9处理SIGCHLD信号 106
5.10wait和waitpid函数 108
5.11accept返回前连接中止 111
5.12服务器进程终止 112
5.13SIGPIPE信号 113
5.14服务器主机崩溃 114
5.15服务器主机崩溃后重启 115
5.16服务器主机关机 116
5.17TCP程序例子小结 116
5.18数据格式 117
5.19小结 120
习题 120
第6章I/O复用:select和poll函数 122
6.1概述 122
6.2I/O模型 122
6.3select函数 127
6.4str_cli函数(修订版) 132
6.5批量输入 133
6.6shutdown函数 136
6.7str_cli函数(再修订版) 137
6.8TCP回射服务器程序(修订版) 138
6.9pselect函数 142
6.10poll函数 144
6.11TCP回射服务器程序(再修订版) 146
6.12小结 148
习题 149
第7章套接字选项 150
7.1概述 150
7.2getsockopt和setsockopt函数 150
7.3检查选项是否受支持并获取默认值 152
7.4套接字状态 156
7.5通用套接字选项 156
7.6IPv4套接字选项 168
7.7ICMPv6套接字选项 169
7.8IPv6套接字选项 169
7.9TCP套接字选项 171
7.10SCTP套接字选项 173
7.11fcntl函数 182
7.12小结 184
习题 184
第8章基本UDP套接字编程 186
8.1概述 186
8.2recvfrom和sendto函数 187
8.3UDP回射服务器程序:main函数 187
8.4UDP回射服务器程序:dg_echo函数 188
8.5UDP回射客户程序:main函数 190
8.6UDP回射客户程序:dg_cli函数 190
8.7数据报的丢失 191
8.8验证接收到的响应 191
8.9服务器进程未运行 193
8.10UDP程序例子小结 194
8.11UDP的connect函数 196
8.12dg_cli函数(修订版) 199
8.13UDP缺乏流量控制 200
8.14UDP中的外出接口的确定 203
8.15使用select函数的TCP和UDP回射服务器程序 204
8.16小结 206
习题 207
第9章基本SCTP套接字编程 208
9.1概述 208
9.2接口模型 208
9.3sctp_bindx函数 212
9.4sctp_connectx函数 213
9.5sctp_getpaddrs函数 213
9.6sctp_freepaddrs函数 213
9.7sctp_getladdrs函数 214
9.8sctp_freeladdrs函数 214
9.9sctp_sendmsg函数 214
9.10sctp_recvmsg函数 215
9.11sctp_opt_info函数 215
9.12sctp_peeloff函数 216
9.13shutdown函数 216
9.14通知 217
9.15小结 221
习题 222
第10章SCTP客户/服务器程序例子 223
10.1概述 223
10.2SCTP一到多式流分回射服务器程序:main函数 223
10.3SCTP一到多式流分回射客户程序:main函数 225
10.4SCTP流分回射客户程序:sctpstr_cli函数 226
10.5探究头端阻塞 228
10.6控制流的数目 233
10.7控制终结 233
10.8小结 234
习题 235
第11章名字与地址转换 236
11.1概述 236
11.2域名系统 236
11.3gethostbyname函数 239
11.4gethostbyaddr函数 242
11.5getservbyname和getservbyport函数 242
11.6getaddrinfo函数 245
11.7gai_strerror函数 250
11.8freeaddrinfo函数 251
11.9getaddrinfo函数:IPv6 251
11.10getaddrinfo函数:例子 253
11.11host_serv函数 254
11.12tcp_connect函数 254
11.13tcp_listen函数 257
11.14udp_client函数 261
11.15udp_connect函数 263
11.16udp_server函数 264
11.17getnameinfo函数 266
11.18可重入函数 267
11.19gethostbyname_r和gethostbyaddr_r函数 270
11.20作废的IPv6地址解析函数 271
11.21其他网络相关信息 272
11.22小结 273
习题 274
第三部分高级套接字编程
第12章IPv4与IPv6的互操作性 278
12.1概述 278
12.2IPv4客户与IPv6服务器 278
12.3IPv6客户与IPv4服务器 281
12.4IPv6地址测试宏 283
12.5源代码可移植性 284
12.6小结 284
习题 285
第13章守护进程和inetd超级服务器 286
13.1概述 286
13.2syslogd守护进程 286
13.3syslog函数 287
13.4daemon_init函数 289
13.5inetd守护进程 293
13.6daemon_inetd函数 297
13.7小结 299
习题 299
第14章高级I/O函数 300
14.1概述 300
14.2套接字超时 300
14.3recv和send函数 305
14.4readv和writev函数 306
14.5recvmsg和sendmsg函数 307
14.6辅助数据 310
14.7排队的数据量 313
14.8套接字和标准I/O 313
14.9高级轮询技术 316
14.10T/TCP:事务目的TCP 320
14.11小结 322
习题 323
第15章Unix域协议 324
15.1概述 324
15.2Unix域套接字地址结构 324
15.3socketpair函数 326
15.4套接字函数 327
15.5Unix域字节流客户/服务器程序 327
15.6Unix域数据报客户/服务器程序 329
15.7描述符传递 330
15.8接收发送者的凭证 337
15.9小结 340
习题 340
第16章非阻塞式I/O 341
16.1概述 341
16.2非阻塞读和写:str_cli函数(修订版) 342
16.3非阻塞connect 351
16.4非阻塞connect:时间获取客户程序 352
16.5非阻塞connect:Web客户程序 354
16.6非阻塞accept 362
16.7小结 363
习题 363
第17章ioctl操作 365
17.1概述 365
17.2ioctl函数 365
17.3套接字操作 366
17.4文件操作 367
17.5接口配置 367
17.6get_ifi_info函数 369
17.7接口操作 378
17.8ARP高速缓存操作 378
17.9路由表操作 380
17.10小结 381
习题 381
第18章路由套接字 382
18.1概述 382
18.2数据链路套接字地址结构 382
18.3读和写 383
18.4sysctl操作 390
18.5get_ifi_info函数 394
18.6接口名字和索引函数 397
18.7小结 401
习题 401
第19章密钥管理套接字 402
19.1概述 402
19.2读和写 403
19.3倾泻安全关联数据库 404
19.4创建静态安全关联 407
19.5动态维护安全关联 412
19.6小结 415
习题 416
第20章广播
……
Book Abstract

《UNIX网络编程 卷1 套接字联网API(第3版)》:
32位IPv4地址存在两种不同的访问方法。举例来说;如果serv定义为某个网际套接字地址结构,那么serv。sinaddr将按inaddr结构引用其中的32位IPv4地址,而serif。sinaddr。saddr将按inaddrt(通常是一个无符号的32位整数)引用同一个32位IPv4地址。因此,我们必须正确地使用IPv4地址,尤其是在将它作为函数的参数时,因为编译器对传递结构和传递整数的处理是完全不同的。
sin_addr字段是一个结构,而不仅仅是一个in_addr_t类型的无符号长整数,这是有历史原因的。早期的版本(4。2BSD)把in_addr结构定义为多种结构的联合(union),允许访问一个32位IPv4地址中的所有4个字节,或者访问它的2个16位值。这用在地址被划分成A、B和c三类的时期,便于获取地址中的适当字节。然而随着子网划分技术的来临和无类地址编排(见A。4节)的出现,各种地址类正在消失,那个联合已不再需要了。如今大多数系统已经废除了该联合,转而把irLaddr定义为仅有一个in_addr—t字段的结构。
·sinzero字段未曾使用,不过在填写这种套接字地址结构时,我们总是把该字段置为0。
按照惯例,我们总是在填写前把整个结构置为0,而不是单单把sinzero字段置为0。
尽管多数使用该结构的情况不要求这一字段为0,但是当捆绑一个非通配的IPv4地址时,该字段必须为0(TCPv2第731~732页)。
套接字地址结构仅在给定主机上使用:虽然结构中的某些字段(例如IP地址和端口号)
用在不同主机之间的通信中,但是结构本身并不在主机之间传递。
3。2。2通用套接字地址结构
当作为一个参数传递进任何套接字函数时,套接字地址结构总是以引用形式(也就是以指向该结构的指针)来传递。然而以这样的指针作为参数之一的任何套接字函数必须处理来自所支持的任何协议族的套接字地址结构。
在如何声明所传递指针的数据类型上存在一个问题。有了ANSIC后解决办法很简单:void+是通用的指针类型。
……

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book