mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 01:37:56 +08:00
Problem: unnecessary event struct and UB
Solution: simply use zmq_poller_event_t
This commit is contained in:
parent
e05fe370fe
commit
284d90a436
@ -60,13 +60,7 @@ class socket_poller_t
|
||||
socket_poller_t ();
|
||||
~socket_poller_t ();
|
||||
|
||||
typedef struct event_t
|
||||
{
|
||||
socket_base_t *socket;
|
||||
fd_t fd;
|
||||
void *user_data;
|
||||
short events;
|
||||
} event_t;
|
||||
typedef zmq_poller_event_t event_t;
|
||||
|
||||
int add (socket_base_t *socket_, void *user_data_, short events_);
|
||||
int modify (const socket_base_t *socket_, short events_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user