Source

kschiess.bitbucket.org / nanomsg / index.html

<!DOCTYPE html><html><head><title>nanomsg (Ruby)</title><meta content="width=device-width, initial-scale=1.0" name="viewport" /><link href="/stylesheets/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css" /><link href="/stylesheets/bootstrap-theme.min.css" media="screen" rel="stylesheet" type="text/css" /><link href="/stylesheets/code.css" media="screen" rel="stylesheet" type="text/css" /><link href="/stylesheets/nanomsg.css" media="screen" rel="stylesheet" type="text/css" /><script src="/javascripts/bootstrap.min.js" type="text/javascript"></script></head><body><div class="container menu"><div class="row"><div class="col-md-2 menu-item active">ABOUT</div></div><div class="row"><div class="col-md-2 menu-item"><a href="/pair.html">PAIR</a></div><div class="col-md-2 menu-item">REQ/REP</div><div class="col-md-2 menu-item">PUB/SUB</div><div class="col-md-2 menu-item">SURVEY/RESPOND</div><div class="col-md-2 menu-item">PUSH/PULL</div><div class="col-md-2 menu-item">BUS</div></div><div class="row"><div class="col-md-2 menu-item">DOCUMENTATION</div><div class="col-md-2 menu-item">CONTRIB</div></div><div class="row text"><div class="col-md-12"><h1>NAME</h1>

<p>NanoMsg - Simple IPC using topologies, not transports.</p>

<h1>VERSION</h1>

<p>This document describes version 0.3.2 of the nanomsg rubygem and the version 0.1-alpha of the nanomsg C library.</p>

<h1>SYNOPSIS</h1>
<pre class="highlight ruby"><span class="nb">require</span> <span class="s1">'nanomsg'</span>

<span class="n">a</span> <span class="o">=</span> <span class="no">NanoMsg</span><span class="o">::</span><span class="no">PairSocket</span><span class="nf">.new</span>
<span class="n">b</span> <span class="o">=</span> <span class="no">NanoMsg</span><span class="o">::</span><span class="no">PairSocket</span><span class="nf">.new</span>

<span class="n">a</span><span class="nf">.connect</span><span class="p">(</span><span class="s1">'inproc://b'</span><span class="p">)</span>
<span class="n">b</span><span class="nf">.bind</span><span class="p">(</span><span class="s1">'inproc://b'</span><span class="p">)</span>

<span class="n">a</span><span class="nf">.send</span> <span class="s1">'nanomsg for IPC'</span>
<span class="n">b</span><span class="nf">.recv</span> <span class="c1"># =&gt; 'nanomsg for IPC'</span>
</pre>
<h1>AUTHOR</h1>

<p>Kaspar Schiess (kaspar.schiess@<a href="http://absurd.li">absurd.li</a>)</p>

<h1>STATUS</h1>

<p>Early in development, this hasn&#39;t received a lot of testing. This gem may still bite you. Please report all errors you may find. </p>

<h1>LICENSE AND COPYRIGHT</h1>

<p>Copyright &copy; 2013, Kaspar Schiess, All rights reserved.</p>

<p>This module is free software; you can redistribute it and/or modify it under the terms of the MIT license. (See <a href="https://bitbucket.org/kschiess/nanomsg/src/4e9ca30c2af5c336380715a4a0a0f0d522078eab/LICENSE?at=master">LICENSE</a> file)</p>

<p>This website is under a <a href="http://creativecommons.org/licenses/by/3.0/">CC Attribution</a> license. </p>
</div></div></div></body></html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.