April 2015
Intermediate to advanced
556 pages
17h 47m
English
As mentioned in Chapter 23, the run loop is the object that waits for events, which may be keyboard, mouse, or timer events. These are all run loop data sources. You can also make a file handle a run loop data source.
In the next section, you are going to fork off a process that burps up data occasionally. You will attach a pipe to standardOutput, but instead of trying to read all the data from the file handle immediately, you will ask the file handle to read in the background and send a notification when data is ready.
You can use /sbin/ping to check whether you can make an IP connection to another machine. Try running it in Terminal:
$ ping -c10 www.bignerdranch.com PING www.bignerdranch.com (69.39.89.150): ...