/* int xs_setctxopt (void *ctx, int option_name, const void *option_value,size_t option_len) : */ func (c *xsContext) SetNumberIOThreads(m int) error { r := C.xs_setctxopt(c.ctx, C.XS_IO_THREADS, unsafe.Pointer(&m), C.size_t(unsafe.Sizeof(&m))) if r == 0 { c.iothreads = m return nil } return errno() }
/* int xs_setctxopt (void *ctx, int option_name, const void *option_value,size_t option_len) : */ func (c *xsContext) SetMaximumSockets(m int) error { r := C.xs_setctxopt(c.ctx, C.XS_MAX_SOCKETS, unsafe.Pointer(&m), C.size_t(unsafe.Sizeof(&m))) if r == 0 { c.maxSockets = m return nil } return errno() }