Module: LibZMQ::EventDataLayout
- Included in:
- EventData
- Defined in:
- lib/ffi-rzmq-core/structures.rb
Overview
/* Socket event data */
typedef struct {
uint16_t event; // id of the event as bitfield
int32_t value ; // value is either error code, fd or reconnect interval
} zmq_event_t;
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
107 108 109 110 111 112 |
# File 'lib/ffi-rzmq-core/structures.rb', line 107 def self.included(base) base.class_eval do layout :event, :uint16, :value, :int32 end end |