The purpose of this book is to provide tools to design and implement network-orientated applications in . NET. It is also a guide for software designers to choose the best and most efficient way to implement mission critical solutions. The book addresses real-world issues facing professional developers, such as using third-party components as opposed in-house development. It differentiates itself from existing . NET publications because it is aimed at experienced professionals and concentrates on practical, ready-to-use information. The book is written in two languages C# and VB. NET, and covers never-before published information on Telephony in . NET and packet-level networking.
This is the second book in the Digital Press Software Development Series.
- Coverage of lower level protocols allows implementation of performance-centric applications
- Demonstrates the feasibility of developing telephony solutions in-house rather than outsourcing
- Written in VB. NET and C# to assist readers working in either language
- Coverage of Email, FTP and the WWW allows implementation of applications in all three areas
Inhaltsverzeichnis
1;Front Cover;1 2;Network Programming in .NET With C# and Visual Basic .NET;4 3;Copyright Page;5 4;Contents;8 5;Preface;16 5.1;Who should read this book?;16 5.2;What hardware and software do you need?;17 5.3;How this book is organized;17 5.4;Conventions used in this book;18 5.5;Further information;19 6;Acknowledgments;20 7;Chapter 1. Understanding the Internet and Network Programming;22 7.1;1.1 Introduction;22 7.2;1.2 Why network programming in .NET?;23 7.3;1.3 What can a network program do?;23 7.4;1.4 IP addresses;24 7.5;1.5 The network stack;27 7.6;1.6 Ports;28 7.7;1.7 Internet standards;28 7.8;1.8 What is .NET?;30 7.9;1.9 Getting started;32 7.10;1.10 Using Visual Studio .NET;33 7.11;1.11 Using the .NET SDK;37 7.12;1.12 Conclusion;41 8;Chapter 2. I/O in the .NET Framework;42 8.1;2.1 Introduction;42 8.2;2.2 Streams;42 8.3;2.3 Conclusion;75 9;Chapter 3. Working with Sockets;76 9.1;3.1 Introduction;76 9.2;3.2 What is a socket?;76 9.3;3.3 Creating a simple hello world application;77 9.4;3.4 Using TCP/IP to transfer files;83 9.5;3.5 Debugging network code;94 9.6;3.6 Socket-level networking in .NET;96 9.7;3.7 Conclusion;107 10;Chapter 4. HTTP: Communicating with Web Servers;108 10.1;4.1 Introduction;108 10.2;4.2 HTTP;109 10.3;4.3 Web servers;134 10.4;4.4 System.Net.HttpWebListener;145 10.5;4.5 Mobile Web browsers;149 10.6;4.6 Conclusion;151 11;Chapter 5. SMTP and POP3: Communicating with email Servers;152 11.1;5.1 Introduction;152 11.2;5.2 Sending an email;152 11.3;5.3 SMTP;153 11.4;5.4 Post office protocol 3;161 11.5;5.5 System.Web.Mail;169 11.6;5.6 Mail application programming interface;174 11.7;5.7 Conclusion;182 12;Chapter 6. FTP: Communicating with File Servers;184 12.1;6.1 Background;184 12.2;6.2 Microsoft file sharing;184 12.3;6.3 Netware file sharing;185 12.4;6.4 An overview of FTP;186 12.5;6.5 Conclusion;215 13;Chapter 7. Securing a Network: Firewalls, Proxy Servers, and Routers;216 13.1;7.1 Introduction;216 13.2;7.2 Building an enterprise network;220 13.3;7.3
Tunneling out of an enterprise network;224 13.4;7.4 Avoiding the networking pitfalls;226 13.5;7.5 Conclusion;228 14;Chapter 8. Protecting Data: Encryption;230 14.1;8.1 Introduction;230 14.2;8.2 Cryptanalysis;230 14.3;8.3 Terminology;233 14.4;8.4 Asymmetric encryption;233 14.5;8.5 Using RSA as asymmetric encryption;234 14.6;8.6 Symmetric encryption;239 14.7;8.7 Piracy protection;245 14.8;8.8 Conclusion;246 15;Chapter 9. Controlling User Access: Authentication and Authorization;248 15.1;9.1 Introduction;248 15.2;9.2 Authentication techniques;248 15.3;9.3 Microsoft .NET Passport authentication;251 15.4;9.4 Hashing information;253 15.5;9.5 SSL;257 15.6;9.6 Certificates;257 15.7;9.7 Server certificates;259 15.8;9.8 Client certificates;260 15.9;9.9 Permissions in .NET;265 15.10;9.10 Financial network security;267 15.11;9.11 Conclusion;270 16;Chapter 10. Programming for Scalability;272 16.1;10.1 Introduction;272 16.2;10.2 Case study: The Google search engine;272 16.3;10.3 Replication and redundancy;274 16.4;10.4 Scalable network applications;275 16.5;10.5 Future proofing;276 16.6;10.6 Thread pooling;277 16.7;10.7 Avoiding deadlocks;282 16.8;10.8 Load balancing;283 16.9;10.9 Conclusion;293 17;Chapter 11. Optimizing Bandwidth Utilization;296 17.1;11.1 Introduction;296 17.2;11.2 Tricks and tips to increase performance;296 17.3;11.3 Multicast UDP;303 17.4;11.4 Data compression;310 17.5;11.5 Lossless compression;311 17.6;11.6 Lossy compression;317 17.7;11.7 Conclusion;324 18;Chapter 12. Ping, DNS, and WHOIS: Monitoring your Network;326 18.1;12.1 Introduction;326 18.2;12.2 DNS;326 18.3;12.3 Ping;335 18.4;12.4 WHOIS;342 18.5;12.5 Other members of the TCP/IP suite;348 18.6;12.6 WMI;350 18.7;12.7 Conclusion;357 19;Chapter 13. Analyzing Network Packets;358 19.1;13.1 Introduction;358 19.2;13.2 IP-level network tapping;360 19.3;13.3 Layer 2 network tapping;375 19.4;13.4 Physical network tapping;387 19.5;13.5 Conclusion;397 20;Chapter 14. Adding Digital Telephony;400 20.1;14.1 Introduc
tion;400 20.2;14.2 Basic telephony;401 20.3;14.3 Listening for incoming phone calls;403 20.4;14.4 DTMF tones;420 20.5;14.5 Audio playback;422 20.6;14.6 Conclusion;438 21;Chapter 15. Message Queues;440 21.1;15.1 Introduction;440 21.2;15.2 MSMQ;441 21.3;15.3 Implementing a message queue;441 21.4;15.4 Timeouts;460 21.5;15.5 Journal;462 21.6;15.6 Queued Components;464 21.7;15.7 Security;468 21.8;15.8 Scalability;470 21.9;15.9 Performance issues;472 21.10;15.10 Conclusion;473 22;Chapter 16. IPv6: Programming for the Next-generation Internet;474 22.1;16.1 Introduction;474 22.2;16.2 What is IPv6?;474 22.3;16.3 The history of IPv6;475 22.4;16.4 So what changes?;476 22.5;16.5 IPv6 naming conventions;477 22.6;16.6 Installing IPv6;478 22.7;16.7 Using IPv6 utilities;479 22.8;16.8 IPv6 routing;485 22.9;16.9 IPv6 coexistence;490 22.10;16.10 IPv6 in .NET;494 22.11;16.11 Conclusion;500 23;Chapter 17. Web Services and Remoting;502 23.1;17.1 Introduction;502 23.2;17.2 Creating a Web service;502 23.3;17.3 Using a Web service;507 23.4;17.4 Asynchronous calls to Web services;510 23.5;17.5 Interoperability;514 23.6;17.6 Performance;515 23.7;17.7 Security;516 23.8;17.8 Web services enhancements;518 23.9;17.9 .NET remoting;521 23.10;17.10 Conclusion 518;539 24;Index;540