Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "This recipe will introduce libnet_init() and libnet_destroy() functions."

A block of code is set as follows:

libnet_t *lnet;
 u_int32_t target, source;
 u_int16_t id,seq;
 char payload[] = "Hello from libnet";
 char errbuf[LIBNET_ERRBUF_SIZE];

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

#import <Foundation/Foundation.h> #define LISTENQ 1024 #define MAXLINE 4096 typedef NS_ENUM(NSUInteger, BSDServerErrorCode) { NOERROR, SOCKETERROR, BINDERROR, ...

Get iOS and OS X Network Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.