TCP/IP Sockets in C#: Practical Guide for Programmers (Paperback)

David Makofske, Michael J. Donahoo, Kenneth L. Calvert

  • 出版商: Morgan Kaufmann
  • 出版日期: 2004-04-29
  • 售價: $1,400
  • 貴賓價: 9.5$1,330
  • 語言: 英文
  • 頁數: 175
  • 裝訂: Paperback
  • ISBN: 0124660517
  • ISBN-13: 9780124660519
  • 相關分類: C#TCP/IP
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Description:

TCP/IP sockets in C# is an excellent book for anyone interested in writing network applications using Microsoft .Net frameworks. It is a unique combination of well written concise text and rich carefully selected set of working examples. For the beginner of network programming, it's a good starting book; on the other hand professionals could also take advantage of excellent handy sample code snippets and material on topics like message parsing and asynchronous programming."
Adarsh Khare, SDT, .Net Frameworks Team, Microsoft Corporation


The popularity of the C# language and the .NET framework is ever rising due to its ease of use, the extensive class libraries available in the .NET Framework, and the ubiquity of the Microsoft Windows operating system, to name a few advantages. TCP/IP Sockets in C# focuses on the Sockets API, the de facto standard for writing network applications in any programming language. Starting with simple client and server programs that use TCP/IP (the Internet protocol suite), students and practitioners quickly learn the basics and move on to firsthand experience with advanced topics including non-blocking sockets, multiplexing, threads, asynchronous programming, and multicasting. Key network programming concepts such as framing, performance and deadlocks are illustrated through hands-on examples. Using a detailed yet clear, concise approach, this book includes numerous code examples and focused discussions to provide a solid understanding of programming TCP/IP sockets in C#.

Features

  • Tutorial-based instruction in key sockets programming techniques complemented by numerous code examples throughout
  • Discussion moves quickly into the C# Sockets API definition and code examples, desirable for those who want to get up-to-speed quickly
  • Important coverage of "under the hood" details that developers will find useful when creating and using a socket or a higher level TCP class that utilizes sockets
  • Includes end-of-chapter exercises to facilitate learning, as well as sample code available for download at the book’s companion web site
  • Contents:

    1 Introduction

    1.1 Networks, Packets,and Protocols
    1.2 About Addresses
    1.3 About Names
    1.4 Clients and Servers
    1.5 What Is a Socket?
    1.6 Exercises


    2 Basic Sockets

    2.1 Socket Addresses
    2.2 Socket Implementationin.NET
    2.3 TCP Sockets
    2.4 UDP Sockets
    2.5 The.NET Socket Class
    2.6 Exercises


    3 Sending and Receiving Messages

    3.1 Encoding Information
    3.2 Composing I/O Streams
    3.3 Framing and Parsing
    3.4 Implementing Wire Formats in C#
    3.5 Wrapping Up
    3.6 Exercises




    4 Beyond the Basics

    4.1 Nonblocking I/O
    4.2 Multiplexing
    4.3 Threads
    4.4 Asynchronous I/O
    4.5 Multiple Recipients
    4.6 Closing Connections
    4.7 Wrapping Up
    4.8 Exercises


    5 Under the Hood

    5.1 Buffering and TCP
    5.2 Buffer Deadlock
    5.3 Performance Implications
    5.4 TCP Socket Life Cycle
    5.5 Demultiplexing Demystified
    5.6 Exercises

    Appendix: Handling Socket Errors
    Bibliography
    Index

    商品描述(中文翻譯)

    描述:


    《C#中的TCP/IP套接字》是一本非常出色的書籍,適合任何有興趣使用Microsoft .Net框架編寫網絡應用程序的人。它結合了寫得精簡的文本和精心選擇的一組豐富的實例。對於初學網絡編程的人來說,這是一本很好的入門書;而對於專業人士來說,他們也可以從優秀的實用代碼片段和關於消息解析和異步編程等主題的材料中受益。
    Adarsh Khare, SDT, .Net Frameworks Team, Microsoft Corporation


    由於易於使用、.NET Framework中豐富的類庫以及Microsoft Windows操作系統的普及等優勢,C#語言和.NET框架的受歡迎程度不斷上升。《C#中的TCP/IP套接字》專注於套接字API,這是任何編程語言中編寫網絡應用程序的事實上的標準。從使用TCP/IP(互聯網協議套件)的簡單客戶端和服務器程序開始,學生和從業人員很快就能學到基礎知識,並通過高級主題的第一手經驗,如非阻塞套接字、多路復用、線程、異步編程和多播等。通過實際示例,詳細但清晰、簡潔的方法,本書通過大量的代碼示例和重點討論,提供了對C#中編程TCP/IP套接字的扎實理解。

    特點:


  • 基於教程的指導,介紹關鍵的套接字編程技術,並配有大量的代碼示例

  • 討論迅速進入C#套接字API定義和代碼示例,適合那些希望快速上手的人

  • 重要的覆蓋“底層”細節,開發人員在創建和使用套接字或使用套接字的高級TCP類時會發現有用

  • 包括章末練習,以促進學習,以及可在書的附屬網站上下載的示例代碼

  • 目錄:


    1 簡介

    1.1 網絡、數據包和協議
    1.2 關於地址
    1.3 關於名稱
    1.4 客戶端和服務器
    1.5 什麼是套接字?
    1.6 練習


    2 基本套接字

    2.1 套接字地址
    2.2 .NET中的套接字實現
    2.3 TCP套接字
    2.4 UDP套接字
    2.5 .NET套接字類
    2.6 練習


    3 發送和接收消息

    3.1 編碼信息
    3.2 組合I/O流
    3.3 分幀和解析
    3.4 在C#中實現線路格式
    3.5 總結
    3.6 練習




    4 進階主題

    4.1 非阻塞I/O
    4.2 多路復用
    4.3 線程
    4.4 異步I/O
    4.5 多個接收者
    4.6 關閉連接
    4.7 總結
    4.8 練習


    5 內部機制

    5.1 緩衝和TCP
    5.2 緩衝死鎖
    5.3 性能影響
    5.4 TCP套接字生命週期
    5.5 解構多路復用
    5.6 練習

    附錄:處理套接字錯誤
    參考文獻
    索引