在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → TCP/IP Sockets in C#: Practical Guide for Programmers

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

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:1.64M
  • 下载次数:2
  • 浏览次数:142
  • 发布时间:2020-07-27
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
Write Socket server by .NET Framework class.
The morgan Kaufmann Practical Guides series Series editor: michael. donahoo TCP/IP Sockets in C#: Practical Guide for Programmers David makofske, michael j donahoo, and Kenneth L. calvert Java Cryptography Extensions: Practical Guide for Programmers Jason weiss JSP Practical Guide for Java Programmers Robert j. brunner JSTL: Practical Guide for JSP Programmers Sue spielman Java: Practical Guide for Programmers Zbigniew M. Sikora The Struts framework: Practical Guide for Java Programmers Sue spielman Multicast Sockets: Practical Guide for Programmers David makofske and Kevin almeroth TCP/IP Sockets in Java: Practical Guide for Programmers Kenneth L. Calvert and michael j donahoo TCP/IP Sockets in C: Practical Guide for Programmers Michael j Donahoo and Kenneth L. calvert JDBC: Practical Guide for Java Programmers Gregory d. speegle For further information on these books and for a list of forthcoming titles pleasevisitourwebsiteathttp://www.mkp.com/practical TCP/IP Sockets in C# Practical Guide for Programmers David b. makofske Akamai Technologies Michael j。 Donahoo Baylor university Kenneth calvert University of Kentucky AMSTERDAM· BOSTON· HEIDELBERO· LONDON NEW YORK· OXFORD· PARIS· SAN DIEGO SAN FRANCISCO· SINGAPORE· SYDNEY· TOKYO ELSEVIER Morgan Kaufmann is an imprint of elsevier Senior editor Rick adams Associate editor Karyn Johnson Publishing Services Manager Simon Crump Project Manager Kyle sarofeen Cover Design Yvo Niezebos design Cover Image Getty Images Composition Cepha Imaging Pvt. Ltd Copyeditor Harbour fraser hodder Proofreader Jacqui brownstein Indexer Michael ferreira Interior printer Maple press Cover printer Phoenix color Morgan Kaufmann Publishers is an imprint of elsevier. 500 Sansome street suite 400. San francisco, ca94111 This book is printed on acid-free paper @2004 by elsevier Inc. All rights reserved Designations used by companies to distinguish their products are often claimed as trademarks or registered trademarks. In all instances in which Morgan Kaufmann Publishers is aware of a claim, the product names appear in initial capital or all capital letters. Readers, however, should contact the appropriate companies for more complete information regarding trademarks and registration No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means-electronic, mechanical, photocopying, scanning or otherwise--without prior written permission of the publisher Permissions may be sought directly from Elsevier's science technology rights department in Oxford,UK:phone:(+44)1865843830,fax:(+44)1865853333,e-mail:permissions@elsevier.com.ui uk Youmayalsocompleteyourrequeston-lineviatheelsevierhomepage(http://elsevier.com)by selecting "Customer Support"and then"Obtaining Permissions Library of Congress Cataloging-in-Publication Data Application submitted ISBN:0-12-466051-7 For information on all morgan Kaufmann publications, visitourWebsiteatwww.mkp.com Printed in the united states of america 080706050454321 For Margie and Jacob, for their love and inspiration David For my three girls: Lisa, Michaela, and mackenzie -Jeff For my parents, Paul and Eleanor calvert en This Page Intentionally left blank Contents Preface ix 1 Introduction 1 1.1 Networks. Packets, and protocols 1 1.2 About addresses 4 1.3 About names 5 1. 4 Clients and servers 5 1.5 What is a socket? 6 1. 6 Exercises 7 2 Basic Sockets 9 2.1 Socket addresses 9 2.2 Socket Implementation in. NET 15 2.3 TCP Sockets 16 2.4 UDP Sockets 29 2.5 The net Socket class 37 2.6 Exercises 57 3 Sending and Receiving Messages 59 3.1 Encoding Information 61 3.2 Composing I/0 Streams 65 3.3 Framing and Parsing 66 3.4 Implementing wire formats in C# 70 3.5 Wrapping Up 83 3.6 Exercises 84 Vil Contents 4 Beyond the basics 85 4.1 Nonblocking I/0 85 4.2 Multiplexing 95 4.3 Threads 99 4.4 Asynchronous I/o 117 4.5 Multiple recipients 131 4.6 Closing Connections 138 4.7 Wrapping Up 145 4.8 Exercises 146 5 Under the Hood 147 5.1 Buffering and TCP 149 5.2 Buffer deadlock 152 5.3 Performance Implications 154 5.4 TCP Socket Life cycle 155 5.5 Demultiplexing Demystified 165 5.6 Exercises 167 Appendix: Handling socket Errors 169 Bibliography 171 Index 173 Preface For years, college courses in computer networking were taught with little or no " hands on experience. For various reasons, including some good ones, instructors approached the principles of computer networking primarily through equations, analyses, and abstract descriptions of protocol stacks. Textbooks might include code, but it was unconnected to anything students could get their hands on. Perhaps in an ideal world this would suffice but we believe that students learn better when they can see(and then build concrete examples of the principles at work. Fortunately, such examples abound today. the internet has become a part of everyday life and access to its services is readily available to most students (and their programs The berkeley Sockets interface, known universally as"sockets "for short, is the de facto standard application programming interface(API)for networking, spanning a wide range of operating systems. The sockets aPi was designed to provide generic access to interprocess communication services that might be implemented by whatever protocols were supported on a particular platform-IPX, Appletalk, tCP/iP, and so on. as a conse quence of this generic approach the sockets api may appear dauntingly complicated at first. But, in fact, the basics of network programming using the internet(tcp/ip) proto- cols are not difficult. The sockets interface has been around for a long time-at least in Internet time-but it is likely to remain important for the foreseeable future We have written this book to improve the support for socket-based programming exercises in our own networking courses. Although some networking texts deal with net- work programming, we know of none that cover TCP/IP sockets. Excellent reference books on TCP/IP socket programming exist, but they are too large and comprehensive to be con sidered as a supplement to a networking text. our goal, therefore is to provide a gentle X 【实例截图】
【核心代码】

标签:

实例下载地址

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

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警