Search

Table of Contents
Network Programming with Perl
BOOK:
Network Programming with Perl
Browse by Category
 
 
Hide Left Column
Network Programming with Perl
Network Programming with Perl
by Lincoln D. Stein

Publisher: Addison-Wesley Professional
Pub Date: December 27, 2000
Print ISBN-10: 0-201-61571-1
Print ISBN-13: 978-0-201-61571-5
Pages: 784
Slots: 1.0
Start Reading
Buy Print Version
Overview

"This is a superb book. Another splendid book from Lincoln, whose mastery and lucid exposition make this a must-have for the serious Perl programmer."
--Jon Orwant, Chief Technology Officer, O'Reilly & Associates
Founder of The Perl Journal, author of Mastering Algorithms with Perl, (O'Reilly & Associates)
and co-author of Programming Perl, Third Edition (O'Reilly & Associates)

Network Programming with Perl is a comprehensive, example-rich guide to creating network-based applications using the Perl programming language. Among its many capabilities, modern Perl provides a straightforward and powerful interface to TCP/IP, and this book shows you how to leverage these capabilities to create robust, maintainable, and efficient custom client/server applications.

The book quickly moves beyond the basics to focus on high-level, application programming concepts, tools, and techniques. Readers will find a review of basic networking concepts and Perl fundamentals, including Perl's I/O functions, process model, and object-oriented extensions. In addition, the book examines a collection of the best third-party modules in the Comprehensive Perl Archive Network, including existing network protocols for e-mail, news, and the Web.

The core of the book focuses on methods and alternatives for designing TCP-based client/server systems and more advanced techniques for specialized applications. Specific topics covered include:

  • The Berkeley Sockets API

  • The TCP protocol and the IO::Socket API

  • FTP filesharing service

  • The Net::Telnet module for adapting clients to interactive network services

  • SMTP, including how to create and send e-mails with multimedia attachments

  • POP, IMAP, and NNTP for receiving and processing e-mail

  • HTTP and the LWP module for communicating with Web servers

  • Forking servers and the UNIX and Windows inetd daemons

  • Perl's experimental multithreaded API

  • Multiplexed operations and nonblocking I/O

  • Bulletproofing servers

  • TCP urgent data

  • UDP protocol and servers

  • Broadcasting and multicasting

  • Interprocess communication with UNIX-domain sockets

Useful, working programs demonstrate ideas and techniques in action, including a real-time chat and messaging system, a program for processing e-mail containing MIME attachments, a program for mirroring an FTP site, and a Web robot.

Network Programming with Perl focuses on TCP/IP rather than just the common Web protocols. Modeled after the critically acclaimed TCP/IP Illustrated by W. Richard Stevens, this book achieves a level of detail far superior to most. It is an essential resource for network administrators and Perl programmers who are creating network applications.



0201615711B04062001

 
Editorial Reviews
Product Description
(Pearson Education) A text focusing on the methods and alternatives for designed TCP/IP-based client/server systems and advanced techniques for specialized applications with Perl. A guide examining a collection of the best third party modules in the Comprehensive Perl Archive Network Softcover. DLC: Perl (Computer program language).
Amazon.com Review
"Network programming"--the term had a distinct meaning once, but now it begs the question, "Is there another kind?" That's why Lincoln Stein's Network Programming with Perl is valuable. It shows how one of the world's top Perl authorities brings the language to bear on problems that require communication among computers, showing that you may not have to resort to Java as soon as you may have thought to meet a networking requirement. What's more, Stein doesn't assume you have a lot of Perl expertise. An intermediate-level familiarity with the language should enable you to understand the examples in the book and follow its classic code-and-commentary structure.

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:

  • Perl function libraries and techniques that allow programs to interact with resources over a network
  • IO::Socket library
  • Net::FTP library
  • Net::Telnet library
  • Net::SMTP library
  • Chat problems
  • Internet Message Access Protocol (IMAP) issues
  • Markup-language parsing
  • Internet Protocol (IP) broadcasting and multicasting
 
Reader Reviews From Amazon (Ranked by 'Helpfulness')
Average Customer Rating:based on 13 reviews.
Excellent book, 2008-10-25
Reviewer rating:
If you write a lot of network utilities in Perl this book is a must-have.

It's very well-written, with lots of sample code and a detailed explanation of how it all works. More importantly, Stein goes into great detail on the concepts the network programmer needs to understand, and why things need to be done a certain way. There is really a lot of valuable information here, and it's all quite well-organized and readable.

A very good computer book.
Excellent, 2003-08-10
Reviewer rating:
This book is excellent. This is one of very few books that the author really takes time, has a good plan to write a book and have good understanding of the subject.

I read many computer books that are just repetitive so it can make the books thick enough to look like a 'good book' (May be this is what US raaders like). I try my best to avoid those books. Those books do not say much in hundreds of pages.

But this book is not that kind of book. Every pages are worth to read. It is quite easy to follow. (I do know a bit of TCP/IP from reading other books before I read this book.) E.g. Stevens TCP/IP books. Unfortunately he died and he won't be able to update those great books.

Some authors are not professional, they just copy here and there. Then they put everything together. Those are terrible books to read. Those terrible books explain some simple concept again and again and take up hundreds of pages that can be done in half of volume. It is not just wasting the readers time (time is money) but also wasting the resource (trees)! Even most college textbooks are that way. Sometimes it is even worst since they know you won't haave much choices!

I seldom to give 5 stars. This book does deserve 5 stars.

You will enjoy this one if you like networking.

One of my favorite Perl books., 2003-06-14
Reviewer rating:
This is one of my favorite Perl books. It really serves what it says it will. It covers a great amount of Perl coding, but like the title says, goes into a lot of networking code, functions and so on. For Perl network programming, you really should have and use this book.
The nirvana, 2002-08-16
Reviewer rating:
Just to say this is a big introduction (from starts to experts) to the network stuff through the magnific language that is perl.
Do you want to be a hacker? do you know enought of perl? Do you feel the only you need to be a hacker is some specific book that prepares to it? this is the one, BUY IT, at the end you will think this is one of the best books you have already read, i promise you.

(if you already know the net, it explains how to do the stuff in perl in an exciting way!)

Everything you need to know on Network Programming, 2002-01-30
Reviewer rating:
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!

 
Some information above was provided using data from Amazon.com. View at Amazon >
Network Programming with Perl
Network Programming with Perl
by Lincoln D. Stein

Publisher: Addison-Wesley Professional
Pub Date: December 27, 2000
Print ISBN-10: 0-201-61571-1
Print ISBN-13: 978-0-201-61571-5
Pages: 784
Slots: 1.0
Start Reading
Buy Print Version
Company | Terms of Service | Privacy Policy | Contact Us | Help | 508 Compliance | Subscribe Now
© 2009 Safari Books Online. All rights reserved.