TCP/IP Sockets in C: Practical Guide for Programmers (2nd by Michael J. Donahoo, Kenneth L. Calvert

Posted by

By Michael J. Donahoo, Kenneth L. Calvert

TCP/IP Sockets in C: useful advisor for Programmers, 2nd version is a short and cheap technique to achieve the data and talents had to strengthen refined and strong web-based functions. The book's concentrated, tutorial-based method permits the reader to grasp the projects and methods necessary to nearly all client-server initiatives utilizing sockets in C. This variation has been improved to incorporate new developments similar to help for IPv6 in addition to specified protecting programming strategies.

If you software utilizing Java, make sure to try out this book's significant other, TCP/IP Sockets in Java: useful advisor for Programmers, 2nd Edition.

• contains thoroughly new and extended sections that handle the IPv6 community setting, protective programming, and the select() procedure name, thereby permitting the reader to application according to the most up-tp-date criteria for internetworking.
• Streamlined and concise tutelage along side line-by-line code remark permits readers to speedy software web-based purposes with no need to go through unrelated and discursive networking tenets.
• offers the reader entry to on-line resource code, which the can then be used to without delay enforce sockets programming tactics.

Show description

Read or Download TCP/IP Sockets in C: Practical Guide for Programmers (2nd Edition) (Morgan Kaufmann Practical Guides) PDF

Similar computer science books

Computer Science Illuminated

Designed to give a breadth first insurance of the sphere of desktop technology.

Introduction to Data Compression (4th Edition) (The Morgan Kaufmann Series in Multimedia Information and Systems)

Every one variation of creation to facts Compression has broadly been thought of the easiest advent and reference textual content at the artwork and technological know-how of knowledge compression, and the fourth variation keeps during this culture. information compression strategies and expertise are ever-evolving with new purposes in photograph, speech, textual content, audio, and video.

Computers as Components: Principles of Embedded Computing System Design (3rd Edition) (The Morgan Kaufmann Series in Computer Architecture and Design)

Pcs as parts: rules of Embedded Computing procedure layout, 3e, offers crucial wisdom on embedded platforms know-how and methods. up-to-date for today's embedded structures layout tools, this variation positive factors new examples together with electronic sign processing, multimedia, and cyber-physical structures.

Computation and Storage in the Cloud: Understanding the Trade-Offs

Computation and garage within the Cloud is the 1st accomplished and systematic paintings investigating the problem of computation and garage trade-off within the cloud so as to lessen the general program fee. clinical purposes tend to be computation and knowledge in depth, the place advanced computation initiatives take many years for execution and the generated datasets are usually terabytes or petabytes in measurement.

Additional resources for TCP/IP Sockets in C: Practical Guide for Programmers (2nd Edition) (Morgan Kaufmann Practical Guides)

Sample text

AI_PASSIVE If hostStr is NULL when this flag is set, any returned addrinfos will have their addresses set to the appropriate “any” address constant—inaddr_any (IPv4) or in6addr_any_init (IPv6). AI_CANONNAME Just as one name can resolve to many numeric addresses, multiple names can resolve to the same IP address. However, one name is usually defined to be the official (“canonical”) name. By setting this flag in ai_flags, we instruct getaddrinfo() to return a pointer to the canonical name (if it exists) in the ai_canonname field of the first struct addrinfo of the linked list.

Thus, a client must call bind() before calling connect() if it is going to use it. You can initialize a in6_addr structure to the wildcard address with in6addr_any_init; however, this special constant may only be used as an “initializer” in a declaration. Note well that while inaddr_any is defined to be in host byte order and, consequently, must be converted to network byte order with htonl() before being used as an argument to bind(), in6addr_any and in6addr_any_init are already in network byte order.

In this section, we describe the data structures used as containers for this information by the Sockets API. , AF_INET) // Family-specific address information 24 Chapter 2: Basic TCP Sockets The first part of this address structure defines the address family—the space to which the address belongs. For our purposes, we will always use the system-defined constants af_inet and af_inet6, which specify the Internet address families for IPv4 and IPv6, respectively. The second part is a blob of bits whose exact form depends on the address family.

Download PDF sample

Rated 4.36 of 5 – based on 6 votes