예제 #1
0
/*
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
}
예제 #2
0
파일: zmq_3_x.go 프로젝트: ajanicij/gozmq
func destroyZmqContext(c unsafe.Pointer) {
	C.zmq_ctx_destroy(c)
}