/* Terminates the context. For linger behavior, see: http://api.zeromq.org/3-2:zmq-ctx-destroy */ func (ctx *Context) Term() error { if ctx.opened { ctx.opened = false n, err := C.zmq_ctx_destroy(ctx.ctx) if n != 0 { ctx.err = errget(err) } } return ctx.err }
func destroyZmqContext(c unsafe.Pointer) { C.zmq_ctx_destroy(c) }