Linux socket programming by Sean Walton

By Sean Walton

Linux Socket Programming offers a complete dialogue of all appropriate themes together with: writing courses suitable with either web Protocol model four (IPv4) and IPv6, uncooked sockets, consumer Datagram Protocol (UDP), broadcasting /multicasting, server internals, and extra, plus a piece overlaying Posix threads.It offers thorough assurance of programming with the TCP, UDP, and IP protocols, in addition to lower-level uncooked sockets. The myriad of functionality calls, information buildings, and suggestions linked to the APIs are defined with well-chosen diagrams and tables.

Show description

Read or Download Linux socket programming PDF

Best unix books

Network and System Security

Network and approach safeguard presents concentrated assurance of community and method safeguard applied sciences. Explores functional options to a variety of community and structures defense matters. Chapters are authored by way of best specialists within the box and deal with the rapid and long-term demanding situations within the authors' respective components of craftsmanship. insurance contains construction a safe association; cryptography; approach intrusion; UNIX and Linux defense; web protection, intranet protection; LAN defense; instant community protection; mobile community safety, RFID protection, and extra.

* Chapters contributed by way of leaders within the box overlaying foundational and sensible points of method and community safeguard, delivering a brand new point of technical services no longer discovered elsewhere.

* complete and up to date insurance of the topic quarter permits the reader to place present applied sciences to paintings

* offers equipment of study and challenge fixing innovations, bettering the reader's snatch of the fabric and talent to enforce useful options

Solaris Solutions for System Administrators: Time-Saving Tips, Techniques, and Workarounds

* Teaches tips to paintings shrewdpermanent and steer clear of the numerous pitfalls of coping with Solaris platforms * Covers the most recent unencumber of Solaris, Solaris nine, in addition to previous types * Written by means of specialists with years of Solaris event * full of functional, hands-on options to tricky difficulties, exhibiting easy methods to keep away from expensive errors * Tackles handling process functionality; the solar fireplace line of Solaris firm servers; fitting, configuring, and patching Solaris; and making sure defense"

SCJP Sun Certified Programmer for Java 5 Study Guide (Exam 310-055)

Get the publication that exhibits you not just what to check, yet the right way to examine. the one classroom-based built-in research method for pro certification delivers whole insurance of all pursuits for the sunlight qualified Programmer for Java five examination, countless numbers of perform examination questions, and hands-on workouts.

Additional resources for Linux socket programming

Example text

5. 5. UDP Attributes 65,535 (65,507 max data payload) 28–68 Low One-shot Medium Medium Yes Each layer up the IP stack provides more focus on data and less on the network. UDP hides some of the details about error messages and how the kernel transmits messages. Also, it reassembles a fragmented message. A message you send via UDP is like an email message: The destination, origin, and data are all the information it needs. The kernel takes the message and drops it on the network but does not verify its arrival.

Only diagnostic or routing programs use this option. MSG_DONTWAIT Don't wait for send() to finish. This option allows the program to proceed as if the send() were done (or delegated). If used, the operating system issues a SIGIO signal, indicating a completed write() operation. If the operation blocks because the send() queue is full, the call returns an error and sets errno to EAGAIN. MSG_NOSIGNAL Don't issue a SIGPIPE signal. If the other end closes early, and if your program sends another message, your may get a SIGPIPE signal.

TCP Attributes (unlimited) 40–120 High (data receipt checked) Stream Low (compared to other protocols) High (includes checksums) Unlikely Taking reliability one step further requires ensuring that the destination gets the exact message the originator sent. UDP has the speed but does not have the reliability that many programs require. TCP solves the reliability problem. The network, however, has several fundamental problems that make it unreliable. These problems are not limitations. Instead, they are inherent in the design of the network.

Download PDF sample

Rated 4.37 of 5 – based on 6 votes