public static int CtxGet(Ctx ctx, ContextOption option) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } return(ctx.Get(option)); }
public static void CtxSet(Ctx ctx, ContextOption option, int optval) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } ctx.Set(option, optval); }
private static void CtxDestroy(Ctx ctx) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } ctx.Terminate(); }
// Sockets public static SocketBase Socket(Ctx ctx, ZmqSocketType type) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } SocketBase s = ctx.CreateSocket(type); return(s); }
public static int CtxGet(Ctx ctx, ContextOption option) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } return ctx.Get(option); }
// Sockets public static SocketBase Socket(Ctx ctx, ZmqSocketType type) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } SocketBase s = ctx.CreateSocket(type); return s; }
private static void CtxDestroy(Ctx ctx) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } ctx.Terminate(); }
public static void CtxSet(Ctx ctx, ContextOption option, int optval) { if (ctx == null || !ctx.CheckTag()) { throw NetMQException.Create(ErrorCode.EFAULT); } ctx.Set(option, optval); }
public static int CtxGet(Ctx ctx, ContextOption option) { if (ctx == null || !ctx.CheckTag()) { throw new InvalidOperationException(); } return ctx.Get(option); }
private static void CtxDestroy(Ctx ctx) { if (ctx == null || !ctx.CheckTag()) { throw new InvalidOperationException(); } ctx.Terminate(); }
// Sockets public static SocketBase Socket(Ctx ctx, ZmqSocketType type) { if (ctx == null || !ctx.CheckTag()) { throw new InvalidOperationException(); } SocketBase s = ctx.CreateSocket(type); return s; }
public static void CtxSet(Ctx ctx, ContextOption option, int optval) { if (ctx == null || !ctx.CheckTag()) { throw new InvalidOperationException(); } ctx.Set(option, optval); }