Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
558
|
17 章 網路基礎
點)」。這一層接著會使用
連結
link
子網路
subnetwork
層在來源
source)到目的地(destination)路上的個別系統之間傳遞資料包。
要傳送資料,應用程式會將一整塊的資料傳到傳輸層,而這接著會將資料
切成資料段大小的組塊傳到網路層,然後它會依據它對區域網路結構的了
解來判斷要用哪個連結將資料送往第一個轉送點,以及要用何種資料包大
小來分割資料段。使用適當的驅動程式,網路層會以選定的連結將資料包
當成封包(packets)傳送出去。中介的每個系統都會解開連結層的封包,
取出網路層的資料包,並以下一個轉送點的連結層協定包裹它們,依據路
由送往下一個系統。最後,資料包抵達其最終目的地,在那裡網路層會將
它往上送到傳輸層,該層會重組資料框,最後將所產生的訊息遞送其目的
的應用程式行程。
本章涵蓋網路原理、
socket
模組,以及
ssl
模組的核心功能子集:這就足
以讓你撰寫一些簡單的網路客戶端和伺服器,更重要的是,讓你在較高的
抽象層正確使用涵蓋於第 19 章的網路模組,以及涵蓋於第 18 章的非同步
架構(asynchronous architectures)。
網路原理
連線導向
connection-oriented
的協定就像是打電話一樣。你請求對某
個特定
網路端點
network endpoint
,這等同於撥打某人的電話號碼)的連
線,然後對方選擇接或不接。如果他們接受,你就可以開始說話,並聽到
他們的回答(必要的話,可以是同時的),所以你知道什麼都不會遺失。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

利用 Python 进行数据分析(原书第2版)

利用 Python 进行数据分析(原书第2版)

Wes McKinney

Publisher Resources

ISBN: 9789864766819