![]() Sell Back Your Copy for $7.81
Whether you buy it used on Amazon for $7.59 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $7.81.
|
Stein presents full, working scripts, calling attention to particularly interesting lines and passages by repeating them in the text. If a program makes use of an unusual or previously undiscussed function (and lots of them do, because one of the author's missions is to introduce the contents of specialized libraries), its syntax and legal parameters will be documented and a concise statement of its behavior provided. The example programs are the best part of this book, though. As the problems get more complicated, it's fun to watch Stein solve them with efficient, attractive code. Unless you're a really experienced professional, you'll be able to study the examples in this book and learn a lot. --David Wall
Topics covered:
This Book's Audience Network Programming with Perl is written for novice and intermediate Perl programmers. I assume you know the basics of Perl programming, including how to write loops, how to construct if-else statements, how to write regular expression pattern matches, the concept of the automatic $_ variable, and the basics of arrays and hashes. You should have access to a Perl interpreter and some experience writing, running, and debugging scripts. Just as important, you should have access to a computer that is connected both to a local area network and to the Internet! Although the recipes in Chapter 10 on setting Perl-based network servers to start automatically when a machine is booted do require superuser (administrative) access, none of the other examples require privileged access to a machine.
This book does take advantage of the object-oriented features in Perl version 5 and higher, but most chapters do not assume a deep knowledge of this system. Chapter 1 addresses all the details you will need as a casual user of Perl objects.
This book is a thorough review of the TCP/IP protocol at the lowest level, or a guide to installing and configuring network hubs, routers, and name servers. Many good books on the mechanics of the TCP/IP protocol and network administration are listed in the references in Appendix D. Roadmap This book is organized into four main parts, Basics, Developing Cients for Common Services, Developing TCP Client/Server Systems, and Advanced Topics. Part I, Basics, introduces the fundamentals of TCP/IP network communications.
Chapters 1 and 2, Networking Basics and Processes, Pipes, and Signals, review Perl's functions and variables for input and output, discuss the exceptions that can occur during I/O operations, and use the piped filehandle as the basis for introducing sockets. These chapters also review Perl's process model, including signals and forking, and introduce Perl's object-oriented extensions. Chapter 3, Introduction to Berkeley Sockets, discusses the basics of Internet networking and describes IP addresses, network ports, and the principles of client/server applications. It then turns to the Berkeley Socket API, which provides the programmer's interface to TCP/IP. Chapters 4 and 5, The TCP Protocol and The IO::Socket API and Simple TCP Applications, show the basics of TCP, the networking protocol that provides reliable stream-oriented communications. These chapters demonstrate how to create client and server applications and then introduce examples that show the power of technique as well as some common roadblocks.
Part II, Developing Clients for Common Services, looks at a collection of the best third-party modules that developers have contributed to the Comprehensive Perl Archive Network (CPAN).
Chapter 6, FTP and Telnet, introduces modules that provide access to the FTP file-sharing service, as well as to the flexible Net::Telnet module which allows you to create clients to access all sorts of network services. E-mail is still the dominant application on the Internet, and Chapter 7, SMTP: Sending Mail, introduces half of the equation. This chapter shows you how to create e-mail messages on the fly, including binary attachments, and send them to their destinations. Chapter 8, POP, IMAP, and NNTP: Processing Mail and Netnews, covers the other half of e-mail, explaining modules that make it possible to receive mail from mail drop systems and process their contents, including binary attachments. Chapter 9, Web Clients, discusses the LWP module, which provides everything you need to talk to Web servers, download and process HTML documents, and parse XML.
Part III, Developing TCP Client/Server Systems--the longest part of the book--discusses the alternatives for designing TCP-based client/server systems. The major example used in these chapters is an interactive psychotherapist server, based on Joseph Weizenbaum's classic Eliza program.
Chapter 10, Forking Servers and the inetd Daemon, covers the common type of TCP server that forks a new process to handle each incoming connection. This chapter also covers the UNIX and Windows inetd daemons, which allow programs not specifically designed for networking to act as servers. Chapter 11, Multithreaded Applications, explains Perl's experimental multithreaded API, and shows how it can greatly simplify the design of TCP clients and servers. Chapters 12 and 13, Multiplexed Operations and Nonblocking I/O, discuss the select() call, which enables an application to process multiple I/O streams concurrently without using multiprocessing or multithreading. Chapter 14, Bulletproofing Servers, discusses techniques for enhancing the reliability and maintainability of network servers. Among the topics are logging, signal handling, and exceptions, as well as the important topic of network security. Chapter 15, Preforking and Prethreading, presents the forki
Product Details
Would you like to update product info or give feedback on images?
|
|
Share your thoughts with other customers:
|
||||||||||||||||||||||
|
Most Helpful Customer Reviews
58 of 58 people found the following review helpful:
5.0 out of 5 stars
Extraordinarily useful book,
By
This review is from: Network Programming with Perl (Paperback)
This book, replete with code, is one of the most useful resources I've come across. There aren't just code snippets here -- there are complete and useful programs, with explanations for each line of code. These line-by-line explanations not only make the code crystal clear, but it demonstrates how you can adapt the code to suit your specific need.It discusses the esoteric topics such as threading, sockets, parsing binary email attachments, and more in a very understandable and open fashion. It also discusses existing modules and their "hidden" usefulness (Hint: Net::Telnet can be used to SSH). The author is to be commended on his ability to make these cryptic topics understood. When I first flipped through Network Programming with Perl, I immediately found the solution to a problem I was having for the previous few days. A few more moments, I saw solutions to problems that associates were having. It's not very often a single book can do that without a thorough reading, but this one came through brilliantly. I strongly recommend this book to anyone serious about taking their Perl expertise to the next level.
49 of 51 people found the following review helpful:
5.0 out of 5 stars
Great coverage of network programming if you use perl,
By
This review is from: Network Programming with Perl (Paperback)
This book has excellent coverage of forking, multithreading, multiplexing, and non-blocking IO. Good coverage of this material is hard to find. Most books just concentrate on specific protocols such as POP, IMAP, FTP, SMTP, etc. This book also covers that material, but unlike other books, this one will actually start you off understanding sockets, pipes and signals rather than just showing you how to to use a bunch of libs. There is plenty of example source code here too.
9 of 9 people found the following review helpful:
5.0 out of 5 stars
Everything you need to know on Network Programming,
This review is from: Network Programming with Perl (Paperback)
This book has been in my wish list for pretty long time, and before I actually buy it decided to check it out of my school's library. Enjoyment started at the first chapters of the book that I read in the library's caffeteria. The book definitely covers all the aspects of the Network Progamming, not only with Perl, but in general as well. In the first chapters of the book, Lincoln Stein makes good use of such OO modules as IO::File and IO::Socket to demostrate that difference between local file operations and remote network programming isn't that much different at all ( at least in Perl ). Chapter 2 shows you several applications that are built on pipes. The best thing about the chapter was the signals part, where L. Stein shows examples, catching all sorts of signals that your progam receives and reacts accordingly. One example was reacting to pressing of CTRL+C sequence of keys to terminate the progam. I would call Chapter 3 the heart of the book, since it goes over Berkeley Sockets, the base for Network progamming in most systems, no matter what progamming language you tend to prefer. It also explains thoroughly Sockets Addressings, Network naming conventions, protocols, services and a lot more. This chapter, together with the Chapter 4 alone are worth the whole price of the book, I believe. The chapter in the end goes over some common netwook analysis tools, such as "nslookup", "ping", so on and so forth. Chapter 4 tells you all you need about TCP Protocol. Shows several examples as well. Goes over Adjusting Socket options, and their uses. Chapter 5 is not anything newer supposing you've been following all the pervious chapters. Untill this chapter, L. Stein demonstrates the coding using much low level Socket API. here Lincoln starts using IO::Socket's Object Oriented Interface for its handy functionalities that enable writing Networking applications more relieving. Chapters 6, 7, 8 and 9 takes you through writing several commong network clients such as SMTP/mailing clients, Telnet, FTP clients. Also provides their complete source codes in case you just feel likek copying them. Chapter 9 gets into the most fun part: LWP and HTML/XML Parsing. Spends good 50 pages on those. Very exciting indeed! The rest of the book (another half) is dedicated for writing Server applications, which I haven't read. I am sure the rest is as exciting as it's been up to this point. But no matter what, I am greatefull to the book for such an exciting and informative coverage of the topics. It's worth every penny that you spend on it. Buy it!
Share your thoughts with other customers: Create your own review
|
|
Tags Customers Associate with This Product(What's this?)Click on a tag to find related items, discussions, and people.
|
|
This product's forum
Active discussions in related forums
Search Customer Discussions
|
Related forums
|