Go to the documentation of this file.
26 const char *endpt =
static_cast<const char *
> (endpt_);
41 const char *endpt =
static_cast<const char *
> (endpt_);
126 for (
int i = 0;
i < 20; ++
i) {
131 snprintf (
ep, 32 *
sizeof (
char),
"inproc://cbbrr%d",
i);
141 const unsigned int no_of_connects = 10;
146 for (
unsigned int i = 0;
i < no_of_connects; ++
i) {
159 for (
unsigned int i = 0;
i < no_of_connects; ++
i) {
164 for (
unsigned int i = 0;
i < no_of_connects; ++
i) {
173 const unsigned int no_of_threads = 30;
175 void *threads[no_of_threads];
178 for (
unsigned int i = 0;
i < no_of_threads; ++
i) {
186 for (
unsigned int i = 0;
i < no_of_threads; ++
i) {
192 for (
unsigned int i = 0;
i < no_of_threads; ++
i) {
201 const unsigned int no_of_times = 50;
202 void *threads[no_of_times * 2];
203 void *thr_args[no_of_times];
204 char endpts[no_of_times][20];
207 for (
unsigned int i = 0;
i < no_of_times; ++
i) {
208 thr_args[
i] = (
void *) endpts[
i];
209 snprintf (endpts[
i], 20 *
sizeof (
char),
"inproc://foo_%d",
i);
213 for (
unsigned int i = 0;
i < no_of_times; ++
i) {
219 for (
unsigned int i = 0;
i < no_of_times; ++
i) {
ZMQ_EXPORT int zmq_ctx_shutdown(void *context_)
ZMQ_EXPORT void * zmq_threadstart(zmq_thread_fn *func_, void *arg_)
void msleep(int milliseconds_)
ZMQ_EXPORT int zmq_unbind(void *s_, const char *addr_)
#define SETUP_TEARDOWN_TESTCONTEXT
void * get_test_context()
static void simult_bind(void *endpt_)
ZMQ_EXPORT int zmq_connect(void *s_, const char *addr_)
void test_multiple_threads()
void test_simultaneous_connect_bind_threads()
void test_connect_before_bind_ctx_term()
int snprintf(char *str, size_t size, const char *format,...)
ZMQ_EXPORT int zmq_setsockopt(void *s_, int option_, const void *optval_, size_t optvallen_)
ZMQ_EXPORT void zmq_threadclose(void *thread_)
void test_connect_before_bind_pub_sub()
void test_multiple_connects()
fd_t connect_socket(const char *endpoint_, const int af_, const int protocol_)
static void simult_conn(void *endpt_)
ZMQ_EXPORT int zmq_bind(void *s_, const char *addr_)
ZMQ_EXPORT int zmq_msg_recv(zmq_msg_t *msg_, void *s_, int flags_)
ZMQ_EXPORT void * zmq_socket(void *, int type_)
void * test_context_socket(int type_)
#define TEST_ASSERT_EQUAL_INT(expected, actual)
ZMQ_EXPORT int zmq_msg_init(zmq_msg_t *msg_)
ZMQ_EXPORT int zmq_close(void *s_)
static SETUP_TEARDOWN_TESTCONTEXT void pusher(void *)
void test_bind_before_connect()
void send_string_expect_success(void *socket_, const char *str_, int flags_)
void recv_string_expect_success(void *socket_, const char *str_, int flags_)
void setup_test_environment(int timeout_seconds_)
ZMQ_EXPORT int zmq_send(void *s_, const void *buf_, size_t len_, int flags_)
ZMQ_EXPORT int zmq_msg_more(const zmq_msg_t *msg_)
void * test_context_socket_close(void *socket_)
#define TEST_ASSERT_SUCCESS_ERRNO(expr)
const SETUP_TEARDOWN_TESTCONTEXT char ep[]
void test_shutdown_during_pend()
void test_connect_before_bind()
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59