GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ZEROMQ::CONTEXT (3)

.ds Aq ’

NAME

ZeroMQ::Context - A 0MQ Context object

CONTENTS

SYNOPSIS



  use ZeroMQ qw/:all/;
 
  my $cxt = ZeroMQ::Context->new;
  my $sock = ZeroMQ::Socket->new($cxt, ZMQ_REP);



DESCRIPTION

Before opening any 0MQ Sockets, the caller must initialise a 0MQ context.

METHODS

    new($nthreads)

Creates a new ZeroMQ::Context.

Optional arguments: The number of io threads to use. Defaults to 1.

term()

Terminates the current context. You *RARELY* need to call this yourself, so don’t do it unless you know what you’re doing.

    socket($type)

Short hand for ZeroMQ::Socket::new.

    ctxt

Return the underlying ZeroMQ::Raw::Context object

CAVEATS

While in principle, ZeroMQ::Context objects are thread-safe, they are currently not cloned when a new Perl ithread is spawned. The variables in the new thread that contained the context in the parent thread will be a scalar reference to undef in the new thread. This could be fixed with better control over the destructor calls.

SEE ALSO

ZeroMQ, ZeroMQ::Socket

<http://zeromq.org>

ExtUtils::XSpp, Module::Build::WithXSpp

AUTHOR

Daisuke Maki <daisuke@endeworks.jp>

Steffen Mueller, <smueller@cpan.org>

COPYRIGHT AND LICENSE

The ZeroMQ module is

Copyright (C) 2010 by Daisuke Maki

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ZEROMQ::CONTEXT (3) 2011-05-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.