Book Image

iOS and OS X Network Programming Cookbook

By : Jon Hoffman
Book Image

iOS and OS X Network Programming Cookbook

By: Jon Hoffman

Overview of this book

Table of Contents (15 chapters)
iOS and OS X Network Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing libnet


In this recipe, we will show you how to download and install libnet on your computer. Libnet was originally maintained on the http://packetfactory.openwall.net/ site; however, this site has not been updated since 2007. Since then, a number of individuals have forked the library in an attempt to maintain it. The version that we will be using is the libnet-dev project located at http://sourceforge.net/.

Getting ready

To get ready for the installation, we will need to download libnet. The projects in this chapter have been tested with the 1.2-RC2 Version, and you can find this version at http://sourceforge.net/projects/libnet-dev/files/libnet-1.2-rc2.tar.gz/download.

Note

Some of the code in this chapter have issues with Version 1.16. If you currently have 1.16 installed, you will need to update it to 1.2.

How to do it…

Once libnet is downloaded, we can install it by performing the following steps:

  1. Open a terminal window by going to Applications | Utilities | Terminal.

    Assuming that...