Git Product home page Git Product logo

zguide-examples's Introduction

zguide-examples

Implementations of the 0MQ examples in the guide (also on github).

The examples in this repo make extensive use of Boost and the C++ Standard Library.

The C++ source files live in their own directories. For instance, all the code for the first example ask and ye shall receive is in ./ask-and-ye-shall-receive.

Why Does This Repository Exist?

It's a learning tool.

I implemented the code as I went through the guide.

  • It gave me a chance to explore other useful, but unrelated areas e.g. the use of boost::program_options for reading command line arguments.
  • It addresses some of the issues I had with the C++ examples in the guide (partly because they target Linux)
  • I've aimed to write 'Modern C++' wherever I knew (or could easily find out) how.

Requirements

Building on Windows

I used Visual Studio 2015 for the majority of the work done so far.

All the solution files are in the msvc directory e.g. ./msvc/ask-and-ye-shall-receive, where each project uses the code files described above.

Define the following environment variables:-

Variable Name Example Value
BOOST_ROOT C:\Users\rich\code\boost
LIBZMQ_ROOT C:\Users\rich\code\libzmq
CPPZMQ_ROOT C:\Users\rich\code\cppzmq

IMPORTANT: The DevStudio solutions are only setup for Debug x86 builds.

Building on 'nix

I hope to enable building on Mac & Linux environments soon (probably) using Make.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.