- iOS and OS X Network Programming Cookbook
- Jon Hoffman
- 212字
- 2021-07-19 18:40:38
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,
LISTENERROR,
ACCEPTINGERROR
};
@interface BSDSocketServer : NSObject
@property int errorCode, listenfd;
-(id)initOnPort:(int)port;
-(void)echoServerListenWithDescriptor:(int)lfd;
-(void)dataServerListenWithDescriptor:(int)lfd;
@end
Any command-line input or output is written as follows:
cd ~/Downloads tar xopf libnet-1.2-rc2.tar cd libnet-1.2-rc2
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "To run your project as root, from the top menu navigate to Project | Scheme | Edit Scheme as shown in the following screenshot:"
- 數據庫基礎教程(SQL Server平臺)
- Python絕技:運用Python成為頂級數據工程師
- 劍破冰山:Oracle開發藝術
- 大數據可視化
- 卷積神經網絡的Python實現
- 醫療大數據挖掘與可視化
- Neural Network Programming with TensorFlow
- 基于Apache CXF構建SOA應用
- 圖數據實戰:用圖思維和圖技術解決復雜問題
- INSTANT Apple iBooks How-to
- Instant Autodesk AutoCAD 2014 Customization with .NET
- SAS金融數據挖掘與建模:系統方法與案例解析
- Hands-On System Programming with C++
- 中國云存儲發展報告
- 數據賦能