Skip to content

Commit

Permalink
Expose ContextHandle from ZmqContext to allow sharing context with (n…
Browse files Browse the repository at this point in the history
…ative) libraries using 0MQ C API.
  • Loading branch information
hyh committed Oct 13, 2012
1 parent 9e882bc commit cbff9a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ZeroMQ/ZmqContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ public int MaxSockets
get { return _contextProxy.GetContextOption((int)ContextOption.MAX_SOCKETS); }
set { SetContextOption(ContextOption.MAX_SOCKETS, value); }
}

/// <summary>
/// Gets the native 0MQ context.
/// </summary>
public IntPtr ContextHandle
{
get { return _contextProxy.ContextHandle; }
}

/// <summary>
/// Create a <see cref="ZmqContext"/> instance.
Expand Down

0 comments on commit cbff9a9

Please sign in to comment.