万本电子书0元读

万本电子书0元读

顶部广告

ZeroMQ电子书

售       价:¥

82人正在读 | 0人评论 9.8

作       者:Faruk Akgul

出  版  社:Packt Publishing

出版时间:2013-03-26

字       数:34.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A practical, step-by-step example-rich tutorial. If you are a C developer who wants to learn about ZeroMQ, this book is for you. It is assumed that the reader has C experience at some level but prior ZeroMQ knowledge is not expected.
目录展开

ZeroMQ

Table of Contents

ZeroMQ

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started

The beginning

The message queue

Introduction to ZeroMQ

Simplicity

Performance

The brokerless design

Hello world

The request-reply pattern

Reply

The fair-queue strategy

Request

Sending the message

Handling strings in C

Checking the ZeroMQ version

Summary

2. Introduction to Sockets

The publish-subscribe pattern

Filtering out messages

The socket options

Subscription

Unsubscription

Notes on the publisher-subscriber pattern

The pipeline pattern

The divide and conquer strategy

The ZMQ_PULL socket

The ZMQ_PUSH socket

Getting ZeroMQ context

Destroying ZeroMQ context

Cleaning up

Detecting memory leaks

Introduction to Valgrind

Summary

3. Using Socket Topology

What a socket is

Types of Internet sockets

Transmission Control Protocol (TCP)

The three-way handshake protocol

TCP header

TCP flags

Properties of TCP

ZeroMQ sockets

Differences between TCP sockets and ZeroMQ sockets

Routing schemes

Unicast

Setting I/O threads and limiting the number of sockets

Working with multiple sockets

Working with multi-part messages

How to handle interruptions

Introduction to CZMQ

zctx

zstr_send

zloop

zmsg

zfile

zfile_mkdir

zhash

zlist

zclock

zthread

Summary

4. Advanced Patterns

Extending the request-reply pattern

Writing multithreaded applications with ZeroMQ

Wrapping publisher-subscriber messages

High watermark

Reliability

Slow subscribers in a publish-subscribe pattern

Summary

A. Appendix

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部