O'Reilly logo

iOS and OS X Network Programming Cookbook by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Using Libnet

In this chapter, we will cover:

  • Installing libnet
  • Adding libnet to your project
  • Resolving names to addresses with libnet
  • Retrieving local addresses with libnet
  • Constructing a Ping packet with libnet
  • Constructing a UDP packet with libnet
  • Constructing a TCP packet with libnet

Introduction

Libnet is a library that allows developers to construct and inject individual network packets. The libnet API hides most of the packet creation low-level details from the developer and allows the developer to quickly create and inject simple packets. Not only can libnet be used to create very powerful network security and monitoring tools, but it can also be used for malicious activities.

Note

While it is possible to compile libnet for the iPhone, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required