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 技術手冊 第三版
Berkeley Socket Interface
|
559
今日,安全性變得越來越重要:了解安全通訊底層的基礎能幫助你確保通
訊的必要安全性。如果這個結論能說服你別在透澈理解相關議題和風險前
試著自行實作這種技術,那它就有效達成目的了。
透過網路介面(network interfaces)的所有通訊都會交換位元組所成的字
串(strings of bytes,位元組在網路用語中稱為
octets
)。舉例來說,要傳送
文字,發送者必須將之編碼(encode)為位元組,而接收者必須進行解碼
decode)。
Berkeley Socket Interface
今日大多數的網路通訊都仰賴於
sockets
插座
Sockets 讓你能夠存取
獨立端點(endpoints)之間的管線(pipelines),使用
傳輸層
transport
layer
在端點間移動資訊。這個 socket 概念的通用性允許端點在相同機器
上,或是在區域或廣域網路連接的個別電腦上。對於程式設計來說,這些
目的地之間沒有差別。
最典型的傳輸層是 UDPUser Datagram Protocol,用於無連線的網路通
訊)和 TCPTransmission Control Protocol,用於連線導向的網路通訊),
運作於共通的 IPInternet Protocol)網路層之上。這種協定組合,連同在
它們之上運行的許多應用協定,統稱為
TCP/IP
Unix 作業系統也提供它們
自己的一種 sockets,用於相同機器上不同的行程之間,上述的兩種協定都 ...
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