Go to the documentation of this file.
6 #if defined(ZMQ_HAVE_WINDOWS)
10 #define close closesocket
12 #include <sys/socket.h>
13 #include <netinet/in.h>
14 #include <arpa/inet.h>
28 char *sequence =
s_recv (handler_);
31 char *routing_id =
s_recv (handler_);
32 char *mechanism =
s_recv (handler_);
148 send (
s,
"\x01\x00", 2, 0);
150 send (
s,
"\x08\x00sneaky\0", 9, 0);
155 printf (
"Received unauthenticated message: %s\n",
buf);
static void bounce(void *socket_)
#define TEST_ASSERT_EQUAL_STRING(expected, actual)
static void setup_zap_handler()
ZMQ_EXPORT void * zmq_threadstart(zmq_thread_fn *func_, void *arg_)
void setup_test_context()
void bind_loopback_ipv4(void *socket_, char *my_endpoint_, size_t len_)
void teardown_test_context()
void * get_test_context()
void send(fd_t fd_, const char(&data_)[N])
void * test_context_socket_close_zero_linger(void *socket_)
void close_zero_linger(void *socket_)
char * s_recv(void *socket_)
ZMQ_EXPORT int zmq_connect(void *s_, const char *addr_)
void test_vanilla_socket()
void test_wrong_domain_fails()
ZMQ_EXPORT int zmq_setsockopt(void *s_, int option_, const void *optval_, size_t optvallen_)
ZMQ_EXPORT void zmq_threadclose(void *thread_)
fd_t connect_socket(const char *endpoint_, const int af_, const int protocol_)
char my_endpoint[MAX_SOCKET_STRING]
#define MAX_SOCKET_STRING
ZMQ_EXPORT int zmq_bind(void *s_, const char *addr_)
GLbitfield GLuint64 timeout
ZMQ_EXPORT void * zmq_socket(void *, int type_)
void * test_context_socket(int type_)
GLenum GLuint GLenum GLsizei const GLchar * buf
static void zap_handler(void *handler_)
bool streq(const char *lhs_, const char *rhs_)
void expect_bounce_fail(void *server_, void *client_)
void send_string_expect_success(void *socket_, const char *str_, int flags_)
void setup_test_environment(int timeout_seconds_)
#define TEST_ASSERT_SUCCESS_ERRNO(expr)
static void teardown_zap_handler()
#define TEST_ASSERT_NULL(pointer)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59