Network Programming with Perl
Home > Computing and Information Technology > Computer networking and communications > Network Programming with Perl
Network Programming with Perl

Network Programming with Perl


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Any developer who's comfortable with Perl can build remarkably powerful TCP/IP network applications -- no C required! In Network Programming with Perl, Lincoln Stein shows how, step-by-step, with extensive code examples. Modeled on W. Richard Stevens' legendary Unix network programming book, this book opens up network programming to a new generation of programmer: Web developers ready to build serious network applications and solve complex network problems. Stein begins with an overview of Perl's increasingly powerful networking facilities; then introduces Berkeley Sockets, and the UDP and TCP protocols at the heart of network programming. He presents Perl's IO:: socket API, which simplifies the creation and use of sockets; demonstrates how to create forking servers; and introduces practical techniques for creating multithreaded and multiplexed applications. Modeled upon the style of Stevens, and using extensive sample code, Stein demonstrates all of the key features. Network Programming with Perl also includes chapter-length explanations of creating Internet modules for FTP and Telnet; Mail and News; and Web services.

Table of Contents:
Preface. I. BASICS. 1. Input/Output Basics. Perl and Networking. Networking Made Easy. Filehandles. Using Object-Oriented Syntax with the IO::Handle and IO::File Modules. Summary. 2. Processes, Pipes, and Signals. Processes. Pipes. Signals. Summary. 3. Introduction to Berkeley Sockets. Clients, Servers, and Protocols. Berkeley Sockets. Socket Addressing. A Simple Network Client. Network Names and Services. Network Analysis Tools. Summary. 4. The TCP Protocol. A TCP Echo Client. Socket Functions Related to Outgoing Connections. A TCP Echo Server. Adjusting Socket Options. Other Socket-Related Functions. Exceptional Conditions during TCP Communications. Summary. 5. The IO::Socket API. Using IO::Socket. IO::Socket Methods. More Practical Examples. Performance and Style. Concurrent Clients. Summary. II. DEVELOPING CLIENTS FOR COMMON SERVICES. 6. FTP and Telnet. Net::FTP. Net::Telnet. Summary. 7. SMTP: Sending Mail. Introduction to the Mail Modules. Net::SMTP. MailTools. MIME-Tools. Summary. 8. POP, IMAP, and NNTP: Processing Mail and Netnews. The Post Office Protocol. The IMAP Protocol. Internet News Clients. A News-to-Mail Gateway. Summary. 9. Web Clients. Installing LWP. LWP Basics. LWP Examples. Parsing HTML and XML. Summary. III. DEVELOPING TCP CLIENT/SERVER SYSTEMS. 10. Forking Servers and the inetd Daemon. Standard Techniques for Concurrency. Running Example: A Psychotherapist Server. The Psychotherapist as a Forking Server. A Client Script for the Psychotherapist Server. Daemonization on UNIX Systems. Starting Network Servers Automatically. Using the inetd Super Daemon. Summary. 11. Multithreaded Applications. About Threads. A Multithreaded Psychiatrist Server. A Multithreaded Client. Summary. 12. Multiplexed Applications. A Multiplexed Client. The IO::Select Module. A Multiplexed Psychiatrist Server. Summary. 13. Nonblocking I/O. Creating Nonblocking I/O Handles. Using Nonblocking Handles. Using Nonblocking Handles with Line-Oriented I/O. A Generic Nonblocking I/O Module. Nonblocking Connects and Accepts. Summary. 14. Bulletproofing Servers. Using the System Log. Setting User Privileges. Taint Mode. Using chroot(). Handling HUP and Other Signals. Summary. 15. Preforking and Prethreading. Preforking. Prethreading. Performance Measures. Summary. 16. IO::Poll. Using IO::Poll. IO::Poll Methods. A Nonblocking TCP Client Using IO::Poll. Summary. IV. ADVANCED TOPICS. 17. TCP Urgent Data. "Out-of-Band" Data and the Urgent Pointer. Using TCP Urgent Data. The sockatmark() Function. A Travesty Server. Summary. 18. The UDP Protocol. A Time of Day Client. Creating and Using UDP Sockets. UDP Errors. Using UDP Sockets with IO::Socket. Sending to Multiple Hosts. UDP Servers. Increasing the Robustness of UDP Applications. Summary. 19. UDP Servers. An Internet Chat System. The Chat Client. The Chat Server. Detecting Dead Clients. Summary. 20. Broadcasting. Unicasting versus Broadcasting. Broadcasting Explained. Sending and Receiving Broadcasts. Broadcasting Without the Broadcast Address. Enhancing the Chat Client to Support Resource Discovery. Summary. 21. Multicasting. Multicast Basics. Using Multicast. Sample Multicast Applications. Summary. 22. UNIX-Domain Sockets. Using UNIX-Domain Sockets. A "Wrap" Server. Using UNIX-Domain Sockets for Datagrams. Summary. Appendix A. Additional Source Code. Net::NetmaskLite (Chapter 3). PromptUtil.pm (Chapters 8 and 9). IO::LineBufferedSet (Chapter 13). IO::LineBufferedSessionData (Chapter 13). DaemonDebug (Chapter 14). Text::Travesty (Chapter 17). mchat_client.pl (Chapter 21). Appendix B. Perl Error Codes and Special Variables. System Error Constants. Magic Variables Affecting I/O. Other Perl Globals. Appendix C. Internet Reference Tables. Assigned Port Numbers. Registered Port Numbers. Internet Multicast Addresses. Appendix D. Bibliography. Index. 0201615711T04062001

About the Author :
Lincoln Stein has an M.D. and is a scientist at Cold Spring Harbor Laboratory. When the Web first emerged, he created and maintained one of the earliest Internet sites for distribution of Human Genome Project data and has since become an acknowledged expert in Web, network, and Perl programming. Known for his exceptional ability to synthesize and present complex information, he writes for The Perl Journal and Web Techniques magazines and is the author of four other books. 0201615711AB04062001


Best Sellers


Product Details
  • ISBN-13: 9780201615715
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 232 mm
  • No of Pages: 784
  • Weight: 1273 gr
  • ISBN-10: 0201615711
  • Publisher Date: 05 Jan 2001
  • Binding: Paperback
  • Language: English
  • Spine Width: 40 mm
  • Width: 188 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Network Programming with Perl
Pearson Education (US) -
Network Programming with Perl
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Network Programming with Perl

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!