Linux Socket Programming by Example
Home > Computing and Information Technology > Operating systems > Open source and other operating systems > Linux > Linux Socket Programming by Example
Linux Socket Programming by Example

Linux Socket Programming by Example


     0     
5
4
3
2
1



Out of Stock


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

Linux Socket Programming by Example begins with a very basic introduction to the fundamentals of socket level programming. As the chapters progress, you are introduced to related concepts, such as forming network addresses, Ipv6, the TCP/IP protocol suite and options, writing servers, and creating secure applications. You will also learn about socket fundamentals, domains and addresses, address conversion functions, socket types and protocols, Internet sockets, types and protocols, binding an address to a socket, using Datagram oriented protocols, and much more.

Table of Contents:
Introduction. I. BASIC SOCKET CONCEPTS. 1. Introducing Sockets. A Brief Historical Introduction. Understanding Sockets. Comparing Sockets to Pipes. Creating Sockets. Performing I/O on Sockets. Closing Sockets. Writing a Client/Server Example. 2. Domains and Address Families. Nameless Sockets. Understanding Domains. Forming Socket Addresses. Forming Local Addresses. Forming Internet (IPv4) Socket Addresses. Specifying an X.25 Address. Specifying Other Address Families. The AF_UNSPEC Address Family. 3. Address Conversion Functions. Internet IP Numbers. Allocating IP Addresses. Manipulating IP Numbers. 4. Socket Types and Protocols. Specifying the Domain of a Socket. Using the socket(2) Function. Choosing a Socket Type. Choosing a Protocol. Socket Domain and Type Summary. Other Linux-Supported Protocols. 5. Binding Addresses to a Socket. The Purpose of the bind(2) Function. Using the bind(2) Function. Obtaining the Socket Address. Interfaces and Addressing. 6. Connectionless-Oriented Protocols. The Methods of Communication. Performing Input/Output of Datagrams. Writing a UDP Datagram Server. Writing a UDP Datagram Client. Testing the Datagram Client and Server. 7. Connection-Oriented Protocols for Clients. Reviewing the Methods of Communication. Internet Services. Consulting the /etc/protocols File. Writing a TCP/IP Client Program. Using connect(2) on SOCK_DGRAM Sockets. 8. Connection-Oriented Protocols for Servers. Understanding the Role of the Server. The listen(2) Function. The accept(2) Function Call. Writing a TCP/IP Server. Modifying the Client Program. 9. Hostname and Network Name Lookups. Understanding the Need for Names. Using the uname(2) Function. Obtaining Hostnames and Domain Names. Resolving Remote Addresses. II. ADVANCED SOCKET PROGRAMMING. 10. Using Standard I/O on Sockets. Understanding the Need for Standard I/O. Associating a Socket with a Stream. Closing a Socket Stream. Using Separate Read and Write Streams. Winding Up Communications. Handling Interrupts. Defining Buffer Operation. Applying FILE Streams to Sockets. 11. Concurrent Client Servers. Understanding the Multiple-Client Problem. Overview of Server Functions. Using fork(2) to Service Multiple Clients. Designing Servers That Use select(2). Applying select(2) to a Server. 12. Socket Options. Getting Socket Options. Setting Socket Options. Retrieving the Socket Type (SO_TYPE). Setting the SO_REUSEADDR Option. Setting the SO_LINGER Option. Setting the SO_KEEPALIVE Option. Setting the SO_BROADCAST Option. Setting the SO_OOBINLINE Option. Options SO_PASSCRED and SO_PEERCRED. 13. Broadcasting with UDP. Understanding Broadcast Addresses. Broadcasting from a Server. Receiving Broadcasts. Demonstrating the Broadcasts. Broadcasting to a Network. 14. Out-of-Band Data. Defining Out-of-Band. Understanding the Need for Out-of-Band Data. Sockets and Out-of-Band Data. Variations in Implementation. Using Out-of-Band Data. Understanding the Urgent Pointer. Receiving Out-of-Band Data Inline. Limitations of the Urgent Mode Pointer. 15. Using the inetd Daemon. Steps Common to Most Servers. Introducing inetd. Implementing a Simple stream tcp Server. Datagram Servers with inetd. 16. Network Security Programming. Defining Security. The Challenges of Security Identifying Friend or Foe. Securing inetd Servers. Installing Wrapper and Server Programs. Introducing the Client Program. Installing and Testing the Wrapper. 17. Passing Credentials and File Descriptors. Problem Statement. Introducing Ancillary Data. Introducing I/O Vectors. The sendmsg(2) and recvmsg(2) Functions. Ancillary Data Structures and Macros. Presenting an Ancillary Data Example. Testing the Socket Server. 18. A Practical Network Project. Problem Statement. Solving the Quote Service Problem. Examining the Quote Server Program. Fetching Quotations via get_tickinfo(). Broadcasting Quotes via broadcast(). Examining the Client Program. Compiling and Running the Demonstration. III. APPENDIXES. Appendix A: Socket Function Quick Reference. Socket-Specific Functions. Socket Addressing. Reading of Sockets. Writing to Sockets. Other Socket I/O. Controlling Sockets. Network Support Functions. Standard I/O Support. Hostname Support. Appendix B: Socket-Related Structures Reference. Socket Address Structures. Miscellaneous Structures. I/O-Related Structures. Appendix C: Useful Network Tables. Glossary. Index.

About the Author :
Warren Gay is the bestselling author of Sams Teach Yourself Linux Programming in 24 Hours. He is the supervisor of Investment Management Systems at Mackenzie Financial Corporation. He has been programming professionally since 1980, programming for UNIX since 1986 and Linux since 1994. He has written many popular Internet-based Linux packages, including an ftp Backup program and a .wav player program.


Best Sellers


Product Details
  • ISBN-13: 9780789722416
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Que Corporation,U.S.
  • Height: 188 mm
  • No of Pages: 576
  • ISBN-10: 0789722410
  • Publisher Date: 02 May 2000
  • Binding: Paperback
  • Language: English


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Linux Socket Programming by Example
Pearson Education (US) -
Linux Socket Programming by Example
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.

Linux Socket Programming by Example

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!