czmq-ffi-gen 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/lib/czmq-ffi-gen.rb +4 -0
 - data/lib/czmq-ffi-gen/czmq/ffi.rb +558 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/version.rb +15 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +179 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +259 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +449 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +280 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +182 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +347 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +311 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +421 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +595 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +182 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +355 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +385 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +512 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +184 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +3242 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +201 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +217 -0
 - data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +221 -0
 - data/lib/czmq-ffi-gen/gem_version.rb +5 -0
 - data/lib/czmq-ffi-gen/library_version.rb +5 -0
 - metadata +138 -0
 
| 
         @@ -0,0 +1,184 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 2 
     | 
    
         
            +
            #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
         
     | 
| 
      
 3 
     | 
    
         
            +
            #  Please refer to the README for information about making permanent changes.  #
         
     | 
| 
      
 4 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            module CZMQ
         
     | 
| 
      
 7 
     | 
    
         
            +
              module FFI
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                # event-driven reactor
         
     | 
| 
      
 10 
     | 
    
         
            +
                # @note This class is 100% generated using zproject.
         
     | 
| 
      
 11 
     | 
    
         
            +
                class Zpoller
         
     | 
| 
      
 12 
     | 
    
         
            +
                  # Raised when one tries to use an instance of {Zpoller} after
         
     | 
| 
      
 13 
     | 
    
         
            +
                  # the internal pointer to the native object has been nullified.
         
     | 
| 
      
 14 
     | 
    
         
            +
                  class DestroyedError < RuntimeError; end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                  # Boilerplate for self pointer, initializer, and finalizer
         
     | 
| 
      
 17 
     | 
    
         
            +
                  class << self
         
     | 
| 
      
 18 
     | 
    
         
            +
                    alias :__new :new
         
     | 
| 
      
 19 
     | 
    
         
            +
                  end
         
     | 
| 
      
 20 
     | 
    
         
            +
                  # Attaches the pointer _ptr_ to this instance and defines a finalizer for
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # it if necessary.
         
     | 
| 
      
 22 
     | 
    
         
            +
                  # @param ptr [::FFI::Pointer]
         
     | 
| 
      
 23 
     | 
    
         
            +
                  # @param finalize [Boolean]
         
     | 
| 
      
 24 
     | 
    
         
            +
                  def initialize(ptr, finalize = true)
         
     | 
| 
      
 25 
     | 
    
         
            +
                    @ptr = ptr
         
     | 
| 
      
 26 
     | 
    
         
            +
                    if @ptr.null?
         
     | 
| 
      
 27 
     | 
    
         
            +
                      @ptr = nil # Remove null pointers so we don't have to test for them.
         
     | 
| 
      
 28 
     | 
    
         
            +
                    elsif finalize
         
     | 
| 
      
 29 
     | 
    
         
            +
                      @finalizer = self.class.create_finalizer_for @ptr
         
     | 
| 
      
 30 
     | 
    
         
            +
                      ObjectSpace.define_finalizer self, @finalizer
         
     | 
| 
      
 31 
     | 
    
         
            +
                    end
         
     | 
| 
      
 32 
     | 
    
         
            +
                  end
         
     | 
| 
      
 33 
     | 
    
         
            +
                  # @param ptr [::FFI::Pointer]
         
     | 
| 
      
 34 
     | 
    
         
            +
                  # @return [Proc]
         
     | 
| 
      
 35 
     | 
    
         
            +
                  def self.create_finalizer_for(ptr)
         
     | 
| 
      
 36 
     | 
    
         
            +
                    Proc.new do
         
     | 
| 
      
 37 
     | 
    
         
            +
                      ptr_ptr = ::FFI::MemoryPointer.new :pointer
         
     | 
| 
      
 38 
     | 
    
         
            +
                      ptr_ptr.write_pointer ptr
         
     | 
| 
      
 39 
     | 
    
         
            +
                      ::CZMQ::FFI.zpoller_destroy ptr_ptr
         
     | 
| 
      
 40 
     | 
    
         
            +
                    end
         
     | 
| 
      
 41 
     | 
    
         
            +
                  end
         
     | 
| 
      
 42 
     | 
    
         
            +
                  # @return [Boolean]
         
     | 
| 
      
 43 
     | 
    
         
            +
                  def null?
         
     | 
| 
      
 44 
     | 
    
         
            +
                    !@ptr or @ptr.null?
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  # Return internal pointer
         
     | 
| 
      
 47 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 48 
     | 
    
         
            +
                  def __ptr
         
     | 
| 
      
 49 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 50 
     | 
    
         
            +
                    @ptr
         
     | 
| 
      
 51 
     | 
    
         
            +
                  end
         
     | 
| 
      
 52 
     | 
    
         
            +
                  # So external Libraries can just pass the Object to a FFI function which expects a :pointer
         
     | 
| 
      
 53 
     | 
    
         
            +
                  alias_method :to_ptr, :__ptr
         
     | 
| 
      
 54 
     | 
    
         
            +
                  # Nullify internal pointer and return pointer pointer.
         
     | 
| 
      
 55 
     | 
    
         
            +
                  # @note This detaches the current instance from the native object
         
     | 
| 
      
 56 
     | 
    
         
            +
                  #   and thus makes it unusable.
         
     | 
| 
      
 57 
     | 
    
         
            +
                  # @return [::FFI::MemoryPointer] the pointer pointing to a pointer
         
     | 
| 
      
 58 
     | 
    
         
            +
                  #   pointing to the native object
         
     | 
| 
      
 59 
     | 
    
         
            +
                  def __ptr_give_ref
         
     | 
| 
      
 60 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 61 
     | 
    
         
            +
                    ptr_ptr = ::FFI::MemoryPointer.new :pointer
         
     | 
| 
      
 62 
     | 
    
         
            +
                    ptr_ptr.write_pointer @ptr
         
     | 
| 
      
 63 
     | 
    
         
            +
                    ObjectSpace.undefine_finalizer self if @finalizer
         
     | 
| 
      
 64 
     | 
    
         
            +
                    @finalizer = nil
         
     | 
| 
      
 65 
     | 
    
         
            +
                    @ptr = nil
         
     | 
| 
      
 66 
     | 
    
         
            +
                    ptr_ptr
         
     | 
| 
      
 67 
     | 
    
         
            +
                  end
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
                  # Create new poller; the reader can be a libzmq socket (void *), a zsock_t
         
     | 
| 
      
 70 
     | 
    
         
            +
                  # instance, or a zactor_t instance.                                       
         
     | 
| 
      
 71 
     | 
    
         
            +
                  # @param reader [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 72 
     | 
    
         
            +
                  # @param args [Array<Object>]
         
     | 
| 
      
 73 
     | 
    
         
            +
                  # @return [CZMQ::Zpoller]
         
     | 
| 
      
 74 
     | 
    
         
            +
                  def self.new(reader, *args)
         
     | 
| 
      
 75 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zpoller_new(reader, *args)
         
     | 
| 
      
 76 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 77 
     | 
    
         
            +
                  end
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                  # Destroy a poller
         
     | 
| 
      
 80 
     | 
    
         
            +
                  #
         
     | 
| 
      
 81 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 82 
     | 
    
         
            +
                  def destroy()
         
     | 
| 
      
 83 
     | 
    
         
            +
                    return unless @ptr
         
     | 
| 
      
 84 
     | 
    
         
            +
                    self_p = __ptr_give_ref
         
     | 
| 
      
 85 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_destroy(self_p)
         
     | 
| 
      
 86 
     | 
    
         
            +
                    result
         
     | 
| 
      
 87 
     | 
    
         
            +
                  end
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
                  # Add a reader to be polled. Returns 0 if OK, -1 on failure. The reader may
         
     | 
| 
      
 90 
     | 
    
         
            +
                  # be a libzmq void * socket, a zsock_t instance, or a zactor_t instance.   
         
     | 
| 
      
 91 
     | 
    
         
            +
                  #
         
     | 
| 
      
 92 
     | 
    
         
            +
                  # @param reader [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 93 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 94 
     | 
    
         
            +
                  def add(reader)
         
     | 
| 
      
 95 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 96 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 97 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_add(self_p, reader)
         
     | 
| 
      
 98 
     | 
    
         
            +
                    result
         
     | 
| 
      
 99 
     | 
    
         
            +
                  end
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                  # Remove a reader from the poller; returns 0 if OK, -1 on failure. The   
         
     | 
| 
      
 102 
     | 
    
         
            +
                  # reader may be a libzmq void * socket, a zsock_t instance, or a zactor_t
         
     | 
| 
      
 103 
     | 
    
         
            +
                  # instance.                                                              
         
     | 
| 
      
 104 
     | 
    
         
            +
                  #
         
     | 
| 
      
 105 
     | 
    
         
            +
                  # @param reader [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 106 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 107 
     | 
    
         
            +
                  def remove(reader)
         
     | 
| 
      
 108 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 109 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 110 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_remove(self_p, reader)
         
     | 
| 
      
 111 
     | 
    
         
            +
                    result
         
     | 
| 
      
 112 
     | 
    
         
            +
                  end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                  # Poll the registered readers for I/O, return first reader that has input.  
         
     | 
| 
      
 115 
     | 
    
         
            +
                  # The reader will be a libzmq void * socket, or a zsock_t or zactor_t       
         
     | 
| 
      
 116 
     | 
    
         
            +
                  # instance as specified in zpoller_new/zpoller_add. The timeout should be   
         
     | 
| 
      
 117 
     | 
    
         
            +
                  # zero or greater, or -1 to wait indefinitely. Socket priority is defined   
         
     | 
| 
      
 118 
     | 
    
         
            +
                  # by their order in the poll list. If you need a balanced poll, use the low 
         
     | 
| 
      
 119 
     | 
    
         
            +
                  # level zmq_poll method directly. If the poll call was interrupted (SIGINT),
         
     | 
| 
      
 120 
     | 
    
         
            +
                  # or the ZMQ context was destroyed, or the timeout expired, returns NULL.   
         
     | 
| 
      
 121 
     | 
    
         
            +
                  # You can test the actual exit condition by calling zpoller_expired () and  
         
     | 
| 
      
 122 
     | 
    
         
            +
                  # zpoller_terminated (). The timeout is in msec.                            
         
     | 
| 
      
 123 
     | 
    
         
            +
                  #
         
     | 
| 
      
 124 
     | 
    
         
            +
                  # @param timeout [Integer, #to_int, #to_i]
         
     | 
| 
      
 125 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 126 
     | 
    
         
            +
                  def wait(timeout)
         
     | 
| 
      
 127 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 128 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 129 
     | 
    
         
            +
                    timeout = Integer(timeout)
         
     | 
| 
      
 130 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_wait(self_p, timeout)
         
     | 
| 
      
 131 
     | 
    
         
            +
                    result
         
     | 
| 
      
 132 
     | 
    
         
            +
                  end
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
                  # Return true if the last zpoller_wait () call ended because the timeout
         
     | 
| 
      
 135 
     | 
    
         
            +
                  # expired, without any error.                                           
         
     | 
| 
      
 136 
     | 
    
         
            +
                  #
         
     | 
| 
      
 137 
     | 
    
         
            +
                  # @return [Boolean]
         
     | 
| 
      
 138 
     | 
    
         
            +
                  def expired()
         
     | 
| 
      
 139 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 140 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 141 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_expired(self_p)
         
     | 
| 
      
 142 
     | 
    
         
            +
                    result
         
     | 
| 
      
 143 
     | 
    
         
            +
                  end
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
                  # Return true if the last zpoller_wait () call ended because the process
         
     | 
| 
      
 146 
     | 
    
         
            +
                  # was interrupted, or the parent context was destroyed.                 
         
     | 
| 
      
 147 
     | 
    
         
            +
                  #
         
     | 
| 
      
 148 
     | 
    
         
            +
                  # @return [Boolean]
         
     | 
| 
      
 149 
     | 
    
         
            +
                  def terminated()
         
     | 
| 
      
 150 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 151 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 152 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_terminated(self_p)
         
     | 
| 
      
 153 
     | 
    
         
            +
                    result
         
     | 
| 
      
 154 
     | 
    
         
            +
                  end
         
     | 
| 
      
 155 
     | 
    
         
            +
             
     | 
| 
      
 156 
     | 
    
         
            +
                  # Ignore zsys_interrupted flag in this poller. By default, a zpoller_wait will 
         
     | 
| 
      
 157 
     | 
    
         
            +
                  # return immediately if detects zsys_interrupted is set to something other than
         
     | 
| 
      
 158 
     | 
    
         
            +
                  # zero. Calling zpoller_ignore_interrupts will supress this behavior.          
         
     | 
| 
      
 159 
     | 
    
         
            +
                  #
         
     | 
| 
      
 160 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 161 
     | 
    
         
            +
                  def ignore_interrupts()
         
     | 
| 
      
 162 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 163 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 164 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_ignore_interrupts(self_p)
         
     | 
| 
      
 165 
     | 
    
         
            +
                    result
         
     | 
| 
      
 166 
     | 
    
         
            +
                  end
         
     | 
| 
      
 167 
     | 
    
         
            +
             
     | 
| 
      
 168 
     | 
    
         
            +
                  # Self test of this class.
         
     | 
| 
      
 169 
     | 
    
         
            +
                  #
         
     | 
| 
      
 170 
     | 
    
         
            +
                  # @param verbose [Boolean]
         
     | 
| 
      
 171 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 172 
     | 
    
         
            +
                  def self.test(verbose)
         
     | 
| 
      
 173 
     | 
    
         
            +
                    verbose = !(0==verbose||!verbose) # boolean
         
     | 
| 
      
 174 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zpoller_test(verbose)
         
     | 
| 
      
 175 
     | 
    
         
            +
                    result
         
     | 
| 
      
 176 
     | 
    
         
            +
                  end
         
     | 
| 
      
 177 
     | 
    
         
            +
                end
         
     | 
| 
      
 178 
     | 
    
         
            +
              end
         
     | 
| 
      
 179 
     | 
    
         
            +
            end
         
     | 
| 
      
 180 
     | 
    
         
            +
             
     | 
| 
      
 181 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 182 
     | 
    
         
            +
            #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
         
     | 
| 
      
 183 
     | 
    
         
            +
            #  Please refer to the README for information about making permanent changes.  #
         
     | 
| 
      
 184 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
         @@ -0,0 +1,3242 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 2 
     | 
    
         
            +
            #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
         
     | 
| 
      
 3 
     | 
    
         
            +
            #  Please refer to the README for information about making permanent changes.  #
         
     | 
| 
      
 4 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            module CZMQ
         
     | 
| 
      
 7 
     | 
    
         
            +
              module FFI
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                # high-level socket API that hides libzmq contexts and sockets
         
     | 
| 
      
 10 
     | 
    
         
            +
                # @note This class is 100% generated using zproject.
         
     | 
| 
      
 11 
     | 
    
         
            +
                class Zsock
         
     | 
| 
      
 12 
     | 
    
         
            +
                  # Raised when one tries to use an instance of {Zsock} after
         
     | 
| 
      
 13 
     | 
    
         
            +
                  # the internal pointer to the native object has been nullified.
         
     | 
| 
      
 14 
     | 
    
         
            +
                  class DestroyedError < RuntimeError; end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                  # Boilerplate for self pointer, initializer, and finalizer
         
     | 
| 
      
 17 
     | 
    
         
            +
                  class << self
         
     | 
| 
      
 18 
     | 
    
         
            +
                    alias :__new :new
         
     | 
| 
      
 19 
     | 
    
         
            +
                  end
         
     | 
| 
      
 20 
     | 
    
         
            +
                  # Attaches the pointer _ptr_ to this instance and defines a finalizer for
         
     | 
| 
      
 21 
     | 
    
         
            +
                  # it if necessary.
         
     | 
| 
      
 22 
     | 
    
         
            +
                  # @param ptr [::FFI::Pointer]
         
     | 
| 
      
 23 
     | 
    
         
            +
                  # @param finalize [Boolean]
         
     | 
| 
      
 24 
     | 
    
         
            +
                  def initialize(ptr, finalize = true)
         
     | 
| 
      
 25 
     | 
    
         
            +
                    @ptr = ptr
         
     | 
| 
      
 26 
     | 
    
         
            +
                    if @ptr.null?
         
     | 
| 
      
 27 
     | 
    
         
            +
                      @ptr = nil # Remove null pointers so we don't have to test for them.
         
     | 
| 
      
 28 
     | 
    
         
            +
                    elsif finalize
         
     | 
| 
      
 29 
     | 
    
         
            +
                      @finalizer = self.class.create_finalizer_for @ptr
         
     | 
| 
      
 30 
     | 
    
         
            +
                      ObjectSpace.define_finalizer self, @finalizer
         
     | 
| 
      
 31 
     | 
    
         
            +
                    end
         
     | 
| 
      
 32 
     | 
    
         
            +
                  end
         
     | 
| 
      
 33 
     | 
    
         
            +
                  # @param ptr [::FFI::Pointer]
         
     | 
| 
      
 34 
     | 
    
         
            +
                  # @return [Proc]
         
     | 
| 
      
 35 
     | 
    
         
            +
                  def self.create_finalizer_for(ptr)
         
     | 
| 
      
 36 
     | 
    
         
            +
                    Proc.new do
         
     | 
| 
      
 37 
     | 
    
         
            +
                      ptr_ptr = ::FFI::MemoryPointer.new :pointer
         
     | 
| 
      
 38 
     | 
    
         
            +
                      ptr_ptr.write_pointer ptr
         
     | 
| 
      
 39 
     | 
    
         
            +
                      ::CZMQ::FFI.zsock_destroy ptr_ptr
         
     | 
| 
      
 40 
     | 
    
         
            +
                    end
         
     | 
| 
      
 41 
     | 
    
         
            +
                  end
         
     | 
| 
      
 42 
     | 
    
         
            +
                  # @return [Boolean]
         
     | 
| 
      
 43 
     | 
    
         
            +
                  def null?
         
     | 
| 
      
 44 
     | 
    
         
            +
                    !@ptr or @ptr.null?
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
                  # Return internal pointer
         
     | 
| 
      
 47 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 48 
     | 
    
         
            +
                  def __ptr
         
     | 
| 
      
 49 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 50 
     | 
    
         
            +
                    @ptr
         
     | 
| 
      
 51 
     | 
    
         
            +
                  end
         
     | 
| 
      
 52 
     | 
    
         
            +
                  # So external Libraries can just pass the Object to a FFI function which expects a :pointer
         
     | 
| 
      
 53 
     | 
    
         
            +
                  alias_method :to_ptr, :__ptr
         
     | 
| 
      
 54 
     | 
    
         
            +
                  # Nullify internal pointer and return pointer pointer.
         
     | 
| 
      
 55 
     | 
    
         
            +
                  # @note This detaches the current instance from the native object
         
     | 
| 
      
 56 
     | 
    
         
            +
                  #   and thus makes it unusable.
         
     | 
| 
      
 57 
     | 
    
         
            +
                  # @return [::FFI::MemoryPointer] the pointer pointing to a pointer
         
     | 
| 
      
 58 
     | 
    
         
            +
                  #   pointing to the native object
         
     | 
| 
      
 59 
     | 
    
         
            +
                  def __ptr_give_ref
         
     | 
| 
      
 60 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 61 
     | 
    
         
            +
                    ptr_ptr = ::FFI::MemoryPointer.new :pointer
         
     | 
| 
      
 62 
     | 
    
         
            +
                    ptr_ptr.write_pointer @ptr
         
     | 
| 
      
 63 
     | 
    
         
            +
                    ObjectSpace.undefine_finalizer self if @finalizer
         
     | 
| 
      
 64 
     | 
    
         
            +
                    @finalizer = nil
         
     | 
| 
      
 65 
     | 
    
         
            +
                    @ptr = nil
         
     | 
| 
      
 66 
     | 
    
         
            +
                    ptr_ptr
         
     | 
| 
      
 67 
     | 
    
         
            +
                  end
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
                  # Create a new socket. Returns the new socket, or NULL if the new socket
         
     | 
| 
      
 70 
     | 
    
         
            +
                  # could not be created. Note that the symbol zsock_new (and other       
         
     | 
| 
      
 71 
     | 
    
         
            +
                  # constructors/destructors for zsock) are redirected to the *_checked   
         
     | 
| 
      
 72 
     | 
    
         
            +
                  # variant, enabling intelligent socket leak detection. This can have    
         
     | 
| 
      
 73 
     | 
    
         
            +
                  # performance implications if you use a LOT of sockets. To turn off this
         
     | 
| 
      
 74 
     | 
    
         
            +
                  # redirection behaviour, define ZSOCK_NOCHECK.                          
         
     | 
| 
      
 75 
     | 
    
         
            +
                  # @param type [Integer, #to_int, #to_i]
         
     | 
| 
      
 76 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 77 
     | 
    
         
            +
                  def self.new(type)
         
     | 
| 
      
 78 
     | 
    
         
            +
                    type = Integer(type)
         
     | 
| 
      
 79 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new(type)
         
     | 
| 
      
 80 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 81 
     | 
    
         
            +
                  end
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
      
 83 
     | 
    
         
            +
                  # Create a PUB socket. Default action is bind.
         
     | 
| 
      
 84 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 85 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 86 
     | 
    
         
            +
                  def self.new_pub(endpoint)
         
     | 
| 
      
 87 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 88 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_pub(endpoint)
         
     | 
| 
      
 89 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 90 
     | 
    
         
            +
                  end
         
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
                  # Create a SUB socket, and optionally subscribe to some prefix string. Default
         
     | 
| 
      
 93 
     | 
    
         
            +
                  # action is connect.                                                          
         
     | 
| 
      
 94 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 95 
     | 
    
         
            +
                  # @param subscribe [String, #to_str, #to_s]
         
     | 
| 
      
 96 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 97 
     | 
    
         
            +
                  def self.new_sub(endpoint, subscribe)
         
     | 
| 
      
 98 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 99 
     | 
    
         
            +
                    subscribe = String(subscribe)
         
     | 
| 
      
 100 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_sub(endpoint, subscribe)
         
     | 
| 
      
 101 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 102 
     | 
    
         
            +
                  end
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
                  # Create a REQ socket. Default action is connect.
         
     | 
| 
      
 105 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 106 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 107 
     | 
    
         
            +
                  def self.new_req(endpoint)
         
     | 
| 
      
 108 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 109 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_req(endpoint)
         
     | 
| 
      
 110 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 111 
     | 
    
         
            +
                  end
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
                  # Create a REP socket. Default action is bind.
         
     | 
| 
      
 114 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 115 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 116 
     | 
    
         
            +
                  def self.new_rep(endpoint)
         
     | 
| 
      
 117 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 118 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_rep(endpoint)
         
     | 
| 
      
 119 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 120 
     | 
    
         
            +
                  end
         
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
                  # Create a DEALER socket. Default action is connect.
         
     | 
| 
      
 123 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 124 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 125 
     | 
    
         
            +
                  def self.new_dealer(endpoint)
         
     | 
| 
      
 126 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 127 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_dealer(endpoint)
         
     | 
| 
      
 128 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 129 
     | 
    
         
            +
                  end
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
                  # Create a ROUTER socket. Default action is bind.
         
     | 
| 
      
 132 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 133 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 134 
     | 
    
         
            +
                  def self.new_router(endpoint)
         
     | 
| 
      
 135 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 136 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_router(endpoint)
         
     | 
| 
      
 137 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 138 
     | 
    
         
            +
                  end
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                  # Create a PUSH socket. Default action is connect.
         
     | 
| 
      
 141 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 142 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 143 
     | 
    
         
            +
                  def self.new_push(endpoint)
         
     | 
| 
      
 144 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 145 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_push(endpoint)
         
     | 
| 
      
 146 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 147 
     | 
    
         
            +
                  end
         
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
      
 149 
     | 
    
         
            +
                  # Create a PULL socket. Default action is bind.
         
     | 
| 
      
 150 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 151 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 152 
     | 
    
         
            +
                  def self.new_pull(endpoint)
         
     | 
| 
      
 153 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 154 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_pull(endpoint)
         
     | 
| 
      
 155 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 156 
     | 
    
         
            +
                  end
         
     | 
| 
      
 157 
     | 
    
         
            +
             
     | 
| 
      
 158 
     | 
    
         
            +
                  # Create an XPUB socket. Default action is bind.
         
     | 
| 
      
 159 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 160 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 161 
     | 
    
         
            +
                  def self.new_xpub(endpoint)
         
     | 
| 
      
 162 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 163 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_xpub(endpoint)
         
     | 
| 
      
 164 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 165 
     | 
    
         
            +
                  end
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                  # Create an XSUB socket. Default action is connect.
         
     | 
| 
      
 168 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 169 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 170 
     | 
    
         
            +
                  def self.new_xsub(endpoint)
         
     | 
| 
      
 171 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 172 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_xsub(endpoint)
         
     | 
| 
      
 173 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 174 
     | 
    
         
            +
                  end
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
                  # Create a PAIR socket. Default action is connect.
         
     | 
| 
      
 177 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 178 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 179 
     | 
    
         
            +
                  def self.new_pair(endpoint)
         
     | 
| 
      
 180 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 181 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_pair(endpoint)
         
     | 
| 
      
 182 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 183 
     | 
    
         
            +
                  end
         
     | 
| 
      
 184 
     | 
    
         
            +
             
     | 
| 
      
 185 
     | 
    
         
            +
                  # Create a STREAM socket. Default action is connect.
         
     | 
| 
      
 186 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 187 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 188 
     | 
    
         
            +
                  def self.new_stream(endpoint)
         
     | 
| 
      
 189 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 190 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_stream(endpoint)
         
     | 
| 
      
 191 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 192 
     | 
    
         
            +
                  end
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
                  # Create a SERVER socket. Default action is bind.
         
     | 
| 
      
 195 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 196 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 197 
     | 
    
         
            +
                  def self.new_server(endpoint)
         
     | 
| 
      
 198 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 199 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_server(endpoint)
         
     | 
| 
      
 200 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 201 
     | 
    
         
            +
                  end
         
     | 
| 
      
 202 
     | 
    
         
            +
             
     | 
| 
      
 203 
     | 
    
         
            +
                  # Create a CLIENT socket. Default action is connect.
         
     | 
| 
      
 204 
     | 
    
         
            +
                  # @param endpoint [String, #to_str, #to_s]
         
     | 
| 
      
 205 
     | 
    
         
            +
                  # @return [CZMQ::Zsock]
         
     | 
| 
      
 206 
     | 
    
         
            +
                  def self.new_client(endpoint)
         
     | 
| 
      
 207 
     | 
    
         
            +
                    endpoint = String(endpoint)
         
     | 
| 
      
 208 
     | 
    
         
            +
                    ptr = ::CZMQ::FFI.zsock_new_client(endpoint)
         
     | 
| 
      
 209 
     | 
    
         
            +
                    __new ptr
         
     | 
| 
      
 210 
     | 
    
         
            +
                  end
         
     | 
| 
      
 211 
     | 
    
         
            +
             
     | 
| 
      
 212 
     | 
    
         
            +
                  # Destroy the socket. You must use this for any socket created via the
         
     | 
| 
      
 213 
     | 
    
         
            +
                  # zsock_new method.                                                   
         
     | 
| 
      
 214 
     | 
    
         
            +
                  #
         
     | 
| 
      
 215 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 216 
     | 
    
         
            +
                  def destroy()
         
     | 
| 
      
 217 
     | 
    
         
            +
                    return unless @ptr
         
     | 
| 
      
 218 
     | 
    
         
            +
                    self_p = __ptr_give_ref
         
     | 
| 
      
 219 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_destroy(self_p)
         
     | 
| 
      
 220 
     | 
    
         
            +
                    result
         
     | 
| 
      
 221 
     | 
    
         
            +
                  end
         
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
      
 223 
     | 
    
         
            +
                  # Bind a socket to a formatted endpoint. For tcp:// endpoints, supports   
         
     | 
| 
      
 224 
     | 
    
         
            +
                  # ephemeral ports, if you specify the port number as "*". By default      
         
     | 
| 
      
 225 
     | 
    
         
            +
                  # zsock uses the IANA designated range from C000 (49152) to FFFF (65535). 
         
     | 
| 
      
 226 
     | 
    
         
            +
                  # To override this range, follow the "*" with "[first-last]". Either or   
         
     | 
| 
      
 227 
     | 
    
         
            +
                  # both first and last may be empty. To bind to a random port within the   
         
     | 
| 
      
 228 
     | 
    
         
            +
                  # range, use "!" in place of "*".                                         
         
     | 
| 
      
 229 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 230 
     | 
    
         
            +
                  # Examples:                                                               
         
     | 
| 
      
 231 
     | 
    
         
            +
                  #     tcp://127.0.0.1:*           bind to first free port from C000 up    
         
     | 
| 
      
 232 
     | 
    
         
            +
                  #     tcp://127.0.0.1:!           bind to random port from C000 to FFFF   
         
     | 
| 
      
 233 
     | 
    
         
            +
                  #     tcp://127.0.0.1:*[60000-]   bind to first free port from 60000 up   
         
     | 
| 
      
 234 
     | 
    
         
            +
                  #     tcp://127.0.0.1:![-60000]   bind to random port from C000 to 60000  
         
     | 
| 
      
 235 
     | 
    
         
            +
                  #     tcp://127.0.0.1:![55000-55999]                                      
         
     | 
| 
      
 236 
     | 
    
         
            +
                  #                                 bind to random port from 55000 to 55999 
         
     | 
| 
      
 237 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 238 
     | 
    
         
            +
                  # On success, returns the actual port number used, for tcp:// endpoints,  
         
     | 
| 
      
 239 
     | 
    
         
            +
                  # and 0 for other transports. On failure, returns -1. Note that when using
         
     | 
| 
      
 240 
     | 
    
         
            +
                  # ephemeral ports, a port may be reused by different services without     
         
     | 
| 
      
 241 
     | 
    
         
            +
                  # clients being aware. Protocols that run on ephemeral ports should take  
         
     | 
| 
      
 242 
     | 
    
         
            +
                  # this into account.                                                      
         
     | 
| 
      
 243 
     | 
    
         
            +
                  #
         
     | 
| 
      
 244 
     | 
    
         
            +
                  # @param format [String, #to_str, #to_s]
         
     | 
| 
      
 245 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 246 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 247 
     | 
    
         
            +
                  def bind(format, *args)
         
     | 
| 
      
 248 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 249 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 250 
     | 
    
         
            +
                    format = String(format)
         
     | 
| 
      
 251 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_bind(self_p, format, *args)
         
     | 
| 
      
 252 
     | 
    
         
            +
                    result
         
     | 
| 
      
 253 
     | 
    
         
            +
                  end
         
     | 
| 
      
 254 
     | 
    
         
            +
             
     | 
| 
      
 255 
     | 
    
         
            +
                  # Returns last bound endpoint, if any.
         
     | 
| 
      
 256 
     | 
    
         
            +
                  #
         
     | 
| 
      
 257 
     | 
    
         
            +
                  # @return [String]
         
     | 
| 
      
 258 
     | 
    
         
            +
                  def endpoint()
         
     | 
| 
      
 259 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 260 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 261 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_endpoint(self_p)
         
     | 
| 
      
 262 
     | 
    
         
            +
                    result
         
     | 
| 
      
 263 
     | 
    
         
            +
                  end
         
     | 
| 
      
 264 
     | 
    
         
            +
             
     | 
| 
      
 265 
     | 
    
         
            +
                  # Unbind a socket from a formatted endpoint.                     
         
     | 
| 
      
 266 
     | 
    
         
            +
                  # Returns 0 if OK, -1 if the endpoint was invalid or the function
         
     | 
| 
      
 267 
     | 
    
         
            +
                  # isn't supported.                                               
         
     | 
| 
      
 268 
     | 
    
         
            +
                  #
         
     | 
| 
      
 269 
     | 
    
         
            +
                  # @param format [String, #to_str, #to_s]
         
     | 
| 
      
 270 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 271 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 272 
     | 
    
         
            +
                  def unbind(format, *args)
         
     | 
| 
      
 273 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 274 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 275 
     | 
    
         
            +
                    format = String(format)
         
     | 
| 
      
 276 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_unbind(self_p, format, *args)
         
     | 
| 
      
 277 
     | 
    
         
            +
                    result
         
     | 
| 
      
 278 
     | 
    
         
            +
                  end
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
      
 280 
     | 
    
         
            +
                  # Connect a socket to a formatted endpoint        
         
     | 
| 
      
 281 
     | 
    
         
            +
                  # Returns 0 if OK, -1 if the endpoint was invalid.
         
     | 
| 
      
 282 
     | 
    
         
            +
                  #
         
     | 
| 
      
 283 
     | 
    
         
            +
                  # @param format [String, #to_str, #to_s]
         
     | 
| 
      
 284 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 285 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 286 
     | 
    
         
            +
                  def connect(format, *args)
         
     | 
| 
      
 287 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 288 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 289 
     | 
    
         
            +
                    format = String(format)
         
     | 
| 
      
 290 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_connect(self_p, format, *args)
         
     | 
| 
      
 291 
     | 
    
         
            +
                    result
         
     | 
| 
      
 292 
     | 
    
         
            +
                  end
         
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
      
 294 
     | 
    
         
            +
                  # Disconnect a socket from a formatted endpoint                  
         
     | 
| 
      
 295 
     | 
    
         
            +
                  # Returns 0 if OK, -1 if the endpoint was invalid or the function
         
     | 
| 
      
 296 
     | 
    
         
            +
                  # isn't supported.                                               
         
     | 
| 
      
 297 
     | 
    
         
            +
                  #
         
     | 
| 
      
 298 
     | 
    
         
            +
                  # @param format [String, #to_str, #to_s]
         
     | 
| 
      
 299 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 300 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 301 
     | 
    
         
            +
                  def disconnect(format, *args)
         
     | 
| 
      
 302 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 303 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 304 
     | 
    
         
            +
                    format = String(format)
         
     | 
| 
      
 305 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_disconnect(self_p, format, *args)
         
     | 
| 
      
 306 
     | 
    
         
            +
                    result
         
     | 
| 
      
 307 
     | 
    
         
            +
                  end
         
     | 
| 
      
 308 
     | 
    
         
            +
             
     | 
| 
      
 309 
     | 
    
         
            +
                  # Attach a socket to zero or more endpoints. If endpoints is not null,     
         
     | 
| 
      
 310 
     | 
    
         
            +
                  # parses as list of ZeroMQ endpoints, separated by commas, and prefixed by 
         
     | 
| 
      
 311 
     | 
    
         
            +
                  # '@' (to bind the socket) or '>' (to connect the socket). Returns 0 if all
         
     | 
| 
      
 312 
     | 
    
         
            +
                  # endpoints were valid, or -1 if there was a syntax error. If the endpoint 
         
     | 
| 
      
 313 
     | 
    
         
            +
                  # does not start with '@' or '>', the serverish argument defines whether   
         
     | 
| 
      
 314 
     | 
    
         
            +
                  # it is used to bind (serverish = true) or connect (serverish = false).    
         
     | 
| 
      
 315 
     | 
    
         
            +
                  #
         
     | 
| 
      
 316 
     | 
    
         
            +
                  # @param endpoints [String, #to_str, #to_s]
         
     | 
| 
      
 317 
     | 
    
         
            +
                  # @param serverish [Boolean]
         
     | 
| 
      
 318 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 319 
     | 
    
         
            +
                  def attach(endpoints, serverish)
         
     | 
| 
      
 320 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 321 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 322 
     | 
    
         
            +
                    endpoints = String(endpoints)
         
     | 
| 
      
 323 
     | 
    
         
            +
                    serverish = !(0==serverish||!serverish) # boolean
         
     | 
| 
      
 324 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_attach(self_p, endpoints, serverish)
         
     | 
| 
      
 325 
     | 
    
         
            +
                    result
         
     | 
| 
      
 326 
     | 
    
         
            +
                  end
         
     | 
| 
      
 327 
     | 
    
         
            +
             
     | 
| 
      
 328 
     | 
    
         
            +
                  # Returns socket type as printable constant string.
         
     | 
| 
      
 329 
     | 
    
         
            +
                  #
         
     | 
| 
      
 330 
     | 
    
         
            +
                  # @return [String]
         
     | 
| 
      
 331 
     | 
    
         
            +
                  def type_str()
         
     | 
| 
      
 332 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 333 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 334 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_type_str(self_p)
         
     | 
| 
      
 335 
     | 
    
         
            +
                    result
         
     | 
| 
      
 336 
     | 
    
         
            +
                  end
         
     | 
| 
      
 337 
     | 
    
         
            +
             
     | 
| 
      
 338 
     | 
    
         
            +
                  # Send a 'picture' message to the socket (or actor). The picture is a   
         
     | 
| 
      
 339 
     | 
    
         
            +
                  # string that defines the type of each frame. This makes it easy to send
         
     | 
| 
      
 340 
     | 
    
         
            +
                  # a complex multiframe message in one call. The picture can contain any 
         
     | 
| 
      
 341 
     | 
    
         
            +
                  # of these characters, each corresponding to one or two arguments:      
         
     | 
| 
      
 342 
     | 
    
         
            +
                  #                                                                       
         
     | 
| 
      
 343 
     | 
    
         
            +
                  #     i = int (signed)                                                  
         
     | 
| 
      
 344 
     | 
    
         
            +
                  #     1 = uint8_t                                                       
         
     | 
| 
      
 345 
     | 
    
         
            +
                  #     2 = uint16_t                                                      
         
     | 
| 
      
 346 
     | 
    
         
            +
                  #     4 = uint32_t                                                      
         
     | 
| 
      
 347 
     | 
    
         
            +
                  #     8 = uint64_t                                                      
         
     | 
| 
      
 348 
     | 
    
         
            +
                  #     s = char *                                                        
         
     | 
| 
      
 349 
     | 
    
         
            +
                  #     b = byte *, size_t (2 arguments)                                  
         
     | 
| 
      
 350 
     | 
    
         
            +
                  #     c = zchunk_t *                                                    
         
     | 
| 
      
 351 
     | 
    
         
            +
                  #     f = zframe_t *                                                    
         
     | 
| 
      
 352 
     | 
    
         
            +
                  #     h = zhashx_t *                                                    
         
     | 
| 
      
 353 
     | 
    
         
            +
                  #     U = zuuid_t *                                                     
         
     | 
| 
      
 354 
     | 
    
         
            +
                  #     p = void * (sends the pointer value, only meaningful over inproc) 
         
     | 
| 
      
 355 
     | 
    
         
            +
                  #     m = zmsg_t * (sends all frames in the zmsg)                       
         
     | 
| 
      
 356 
     | 
    
         
            +
                  #     z = sends zero-sized frame (0 arguments)                          
         
     | 
| 
      
 357 
     | 
    
         
            +
                  #     u = uint (deprecated)                                             
         
     | 
| 
      
 358 
     | 
    
         
            +
                  #                                                                       
         
     | 
| 
      
 359 
     | 
    
         
            +
                  # Note that s, b, c, and f are encoded the same way and the choice is   
         
     | 
| 
      
 360 
     | 
    
         
            +
                  # offered as a convenience to the sender, which may or may not already  
         
     | 
| 
      
 361 
     | 
    
         
            +
                  # have data in a zchunk or zframe. Does not change or take ownership of 
         
     | 
| 
      
 362 
     | 
    
         
            +
                  # any arguments. Returns 0 if successful, -1 if sending failed for any  
         
     | 
| 
      
 363 
     | 
    
         
            +
                  # reason.                                                               
         
     | 
| 
      
 364 
     | 
    
         
            +
                  #
         
     | 
| 
      
 365 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 366 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 367 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 368 
     | 
    
         
            +
                  def send(picture, *args)
         
     | 
| 
      
 369 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 370 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 371 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 372 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_send(self_p, picture, *args)
         
     | 
| 
      
 373 
     | 
    
         
            +
                    result
         
     | 
| 
      
 374 
     | 
    
         
            +
                  end
         
     | 
| 
      
 375 
     | 
    
         
            +
             
     | 
| 
      
 376 
     | 
    
         
            +
                  # Send a 'picture' message to the socket (or actor). The picture is a   
         
     | 
| 
      
 377 
     | 
    
         
            +
                  # string that defines the type of each frame. This makes it easy to send
         
     | 
| 
      
 378 
     | 
    
         
            +
                  # a complex multiframe message in one call. The picture can contain any 
         
     | 
| 
      
 379 
     | 
    
         
            +
                  # of these characters, each corresponding to one or two arguments:      
         
     | 
| 
      
 380 
     | 
    
         
            +
                  #                                                                       
         
     | 
| 
      
 381 
     | 
    
         
            +
                  #     i = int (signed)                                                  
         
     | 
| 
      
 382 
     | 
    
         
            +
                  #     1 = uint8_t                                                       
         
     | 
| 
      
 383 
     | 
    
         
            +
                  #     2 = uint16_t                                                      
         
     | 
| 
      
 384 
     | 
    
         
            +
                  #     4 = uint32_t                                                      
         
     | 
| 
      
 385 
     | 
    
         
            +
                  #     8 = uint64_t                                                      
         
     | 
| 
      
 386 
     | 
    
         
            +
                  #     s = char *                                                        
         
     | 
| 
      
 387 
     | 
    
         
            +
                  #     b = byte *, size_t (2 arguments)                                  
         
     | 
| 
      
 388 
     | 
    
         
            +
                  #     c = zchunk_t *                                                    
         
     | 
| 
      
 389 
     | 
    
         
            +
                  #     f = zframe_t *                                                    
         
     | 
| 
      
 390 
     | 
    
         
            +
                  #     h = zhashx_t *                                                    
         
     | 
| 
      
 391 
     | 
    
         
            +
                  #     U = zuuid_t *                                                     
         
     | 
| 
      
 392 
     | 
    
         
            +
                  #     p = void * (sends the pointer value, only meaningful over inproc) 
         
     | 
| 
      
 393 
     | 
    
         
            +
                  #     m = zmsg_t * (sends all frames in the zmsg)                       
         
     | 
| 
      
 394 
     | 
    
         
            +
                  #     z = sends zero-sized frame (0 arguments)                          
         
     | 
| 
      
 395 
     | 
    
         
            +
                  #     u = uint (deprecated)                                             
         
     | 
| 
      
 396 
     | 
    
         
            +
                  #                                                                       
         
     | 
| 
      
 397 
     | 
    
         
            +
                  # Note that s, b, c, and f are encoded the same way and the choice is   
         
     | 
| 
      
 398 
     | 
    
         
            +
                  # offered as a convenience to the sender, which may or may not already  
         
     | 
| 
      
 399 
     | 
    
         
            +
                  # have data in a zchunk or zframe. Does not change or take ownership of 
         
     | 
| 
      
 400 
     | 
    
         
            +
                  # any arguments. Returns 0 if successful, -1 if sending failed for any  
         
     | 
| 
      
 401 
     | 
    
         
            +
                  # reason.                                                               
         
     | 
| 
      
 402 
     | 
    
         
            +
                  #
         
     | 
| 
      
 403 
     | 
    
         
            +
                  # This is the polymorphic version of #send.
         
     | 
| 
      
 404 
     | 
    
         
            +
                  #
         
     | 
| 
      
 405 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 406 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 407 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 408 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 409 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 410 
     | 
    
         
            +
                  def self.send(self_p, picture, *args)
         
     | 
| 
      
 411 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 412 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 413 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_send(self_p, picture, *args)
         
     | 
| 
      
 414 
     | 
    
         
            +
                    result
         
     | 
| 
      
 415 
     | 
    
         
            +
                  end
         
     | 
| 
      
 416 
     | 
    
         
            +
             
     | 
| 
      
 417 
     | 
    
         
            +
                  # Send a 'picture' message to the socket (or actor). This is a va_list 
         
     | 
| 
      
 418 
     | 
    
         
            +
                  # version of zsock_send (), so please consult its documentation for the
         
     | 
| 
      
 419 
     | 
    
         
            +
                  # details.                                                             
         
     | 
| 
      
 420 
     | 
    
         
            +
                  #
         
     | 
| 
      
 421 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 422 
     | 
    
         
            +
                  # @param argptr [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 423 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 424 
     | 
    
         
            +
                  def vsend(picture, argptr)
         
     | 
| 
      
 425 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 426 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 427 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 428 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_vsend(self_p, picture, argptr)
         
     | 
| 
      
 429 
     | 
    
         
            +
                    result
         
     | 
| 
      
 430 
     | 
    
         
            +
                  end
         
     | 
| 
      
 431 
     | 
    
         
            +
             
     | 
| 
      
 432 
     | 
    
         
            +
                  # Send a 'picture' message to the socket (or actor). This is a va_list 
         
     | 
| 
      
 433 
     | 
    
         
            +
                  # version of zsock_send (), so please consult its documentation for the
         
     | 
| 
      
 434 
     | 
    
         
            +
                  # details.                                                             
         
     | 
| 
      
 435 
     | 
    
         
            +
                  #
         
     | 
| 
      
 436 
     | 
    
         
            +
                  # This is the polymorphic version of #vsend.
         
     | 
| 
      
 437 
     | 
    
         
            +
                  #
         
     | 
| 
      
 438 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 439 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 440 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 441 
     | 
    
         
            +
                  # @param argptr [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 442 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 443 
     | 
    
         
            +
                  def self.vsend(self_p, picture, argptr)
         
     | 
| 
      
 444 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 445 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 446 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_vsend(self_p, picture, argptr)
         
     | 
| 
      
 447 
     | 
    
         
            +
                    result
         
     | 
| 
      
 448 
     | 
    
         
            +
                  end
         
     | 
| 
      
 449 
     | 
    
         
            +
             
     | 
| 
      
 450 
     | 
    
         
            +
                  # Receive a 'picture' message to the socket (or actor). See zsock_send for
         
     | 
| 
      
 451 
     | 
    
         
            +
                  # the format and meaning of the picture. Returns the picture elements into
         
     | 
| 
      
 452 
     | 
    
         
            +
                  # a series of pointers as provided by the caller:                         
         
     | 
| 
      
 453 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 454 
     | 
    
         
            +
                  #     i = int * (stores signed integer)                                   
         
     | 
| 
      
 455 
     | 
    
         
            +
                  #     4 = uint32_t * (stores 32-bit unsigned integer)                     
         
     | 
| 
      
 456 
     | 
    
         
            +
                  #     8 = uint64_t * (stores 64-bit unsigned integer)                     
         
     | 
| 
      
 457 
     | 
    
         
            +
                  #     s = char ** (allocates new string)                                  
         
     | 
| 
      
 458 
     | 
    
         
            +
                  #     b = byte **, size_t * (2 arguments) (allocates memory)              
         
     | 
| 
      
 459 
     | 
    
         
            +
                  #     c = zchunk_t ** (creates zchunk)                                    
         
     | 
| 
      
 460 
     | 
    
         
            +
                  #     f = zframe_t ** (creates zframe)                                    
         
     | 
| 
      
 461 
     | 
    
         
            +
                  #     U = zuuid_t * (creates a zuuid with the data)                       
         
     | 
| 
      
 462 
     | 
    
         
            +
                  #     h = zhashx_t ** (creates zhashx)                                    
         
     | 
| 
      
 463 
     | 
    
         
            +
                  #     p = void ** (stores pointer)                                        
         
     | 
| 
      
 464 
     | 
    
         
            +
                  #     m = zmsg_t ** (creates a zmsg with the remaing frames)              
         
     | 
| 
      
 465 
     | 
    
         
            +
                  #     z = null, asserts empty frame (0 arguments)                         
         
     | 
| 
      
 466 
     | 
    
         
            +
                  #     u = uint * (stores unsigned integer, deprecated)                    
         
     | 
| 
      
 467 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 468 
     | 
    
         
            +
                  # Note that zsock_recv creates the returned objects, and the caller must  
         
     | 
| 
      
 469 
     | 
    
         
            +
                  # destroy them when finished with them. The supplied pointers do not need 
         
     | 
| 
      
 470 
     | 
    
         
            +
                  # to be initialized. Returns 0 if successful, or -1 if it failed to recv  
         
     | 
| 
      
 471 
     | 
    
         
            +
                  # a message, in which case the pointers are not modified. When message    
         
     | 
| 
      
 472 
     | 
    
         
            +
                  # frames are truncated (a short message), sets return values to zero/null.
         
     | 
| 
      
 473 
     | 
    
         
            +
                  # If an argument pointer is NULL, does not store any value (skips it).    
         
     | 
| 
      
 474 
     | 
    
         
            +
                  # An 'n' picture matches an empty frame; if the message does not match,   
         
     | 
| 
      
 475 
     | 
    
         
            +
                  # the method will return -1.                                              
         
     | 
| 
      
 476 
     | 
    
         
            +
                  #
         
     | 
| 
      
 477 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 478 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 479 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 480 
     | 
    
         
            +
                  def recv(picture, *args)
         
     | 
| 
      
 481 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 482 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 483 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 484 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_recv(self_p, picture, *args)
         
     | 
| 
      
 485 
     | 
    
         
            +
                    result
         
     | 
| 
      
 486 
     | 
    
         
            +
                  end
         
     | 
| 
      
 487 
     | 
    
         
            +
             
     | 
| 
      
 488 
     | 
    
         
            +
                  # Receive a 'picture' message to the socket (or actor). See zsock_send for
         
     | 
| 
      
 489 
     | 
    
         
            +
                  # the format and meaning of the picture. Returns the picture elements into
         
     | 
| 
      
 490 
     | 
    
         
            +
                  # a series of pointers as provided by the caller:                         
         
     | 
| 
      
 491 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 492 
     | 
    
         
            +
                  #     i = int * (stores signed integer)                                   
         
     | 
| 
      
 493 
     | 
    
         
            +
                  #     4 = uint32_t * (stores 32-bit unsigned integer)                     
         
     | 
| 
      
 494 
     | 
    
         
            +
                  #     8 = uint64_t * (stores 64-bit unsigned integer)                     
         
     | 
| 
      
 495 
     | 
    
         
            +
                  #     s = char ** (allocates new string)                                  
         
     | 
| 
      
 496 
     | 
    
         
            +
                  #     b = byte **, size_t * (2 arguments) (allocates memory)              
         
     | 
| 
      
 497 
     | 
    
         
            +
                  #     c = zchunk_t ** (creates zchunk)                                    
         
     | 
| 
      
 498 
     | 
    
         
            +
                  #     f = zframe_t ** (creates zframe)                                    
         
     | 
| 
      
 499 
     | 
    
         
            +
                  #     U = zuuid_t * (creates a zuuid with the data)                       
         
     | 
| 
      
 500 
     | 
    
         
            +
                  #     h = zhashx_t ** (creates zhashx)                                    
         
     | 
| 
      
 501 
     | 
    
         
            +
                  #     p = void ** (stores pointer)                                        
         
     | 
| 
      
 502 
     | 
    
         
            +
                  #     m = zmsg_t ** (creates a zmsg with the remaing frames)              
         
     | 
| 
      
 503 
     | 
    
         
            +
                  #     z = null, asserts empty frame (0 arguments)                         
         
     | 
| 
      
 504 
     | 
    
         
            +
                  #     u = uint * (stores unsigned integer, deprecated)                    
         
     | 
| 
      
 505 
     | 
    
         
            +
                  #                                                                         
         
     | 
| 
      
 506 
     | 
    
         
            +
                  # Note that zsock_recv creates the returned objects, and the caller must  
         
     | 
| 
      
 507 
     | 
    
         
            +
                  # destroy them when finished with them. The supplied pointers do not need 
         
     | 
| 
      
 508 
     | 
    
         
            +
                  # to be initialized. Returns 0 if successful, or -1 if it failed to recv  
         
     | 
| 
      
 509 
     | 
    
         
            +
                  # a message, in which case the pointers are not modified. When message    
         
     | 
| 
      
 510 
     | 
    
         
            +
                  # frames are truncated (a short message), sets return values to zero/null.
         
     | 
| 
      
 511 
     | 
    
         
            +
                  # If an argument pointer is NULL, does not store any value (skips it).    
         
     | 
| 
      
 512 
     | 
    
         
            +
                  # An 'n' picture matches an empty frame; if the message does not match,   
         
     | 
| 
      
 513 
     | 
    
         
            +
                  # the method will return -1.                                              
         
     | 
| 
      
 514 
     | 
    
         
            +
                  #
         
     | 
| 
      
 515 
     | 
    
         
            +
                  # This is the polymorphic version of #recv.
         
     | 
| 
      
 516 
     | 
    
         
            +
                  #
         
     | 
| 
      
 517 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 518 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 519 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 520 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 521 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 522 
     | 
    
         
            +
                  def self.recv(self_p, picture, *args)
         
     | 
| 
      
 523 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 524 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 525 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_recv(self_p, picture, *args)
         
     | 
| 
      
 526 
     | 
    
         
            +
                    result
         
     | 
| 
      
 527 
     | 
    
         
            +
                  end
         
     | 
| 
      
 528 
     | 
    
         
            +
             
     | 
| 
      
 529 
     | 
    
         
            +
                  # Receive a 'picture' message from the socket (or actor). This is a    
         
     | 
| 
      
 530 
     | 
    
         
            +
                  # va_list version of zsock_recv (), so please consult its documentation
         
     | 
| 
      
 531 
     | 
    
         
            +
                  # for the details.                                                     
         
     | 
| 
      
 532 
     | 
    
         
            +
                  #
         
     | 
| 
      
 533 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 534 
     | 
    
         
            +
                  # @param argptr [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 535 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 536 
     | 
    
         
            +
                  def vrecv(picture, argptr)
         
     | 
| 
      
 537 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 538 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 539 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 540 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_vrecv(self_p, picture, argptr)
         
     | 
| 
      
 541 
     | 
    
         
            +
                    result
         
     | 
| 
      
 542 
     | 
    
         
            +
                  end
         
     | 
| 
      
 543 
     | 
    
         
            +
             
     | 
| 
      
 544 
     | 
    
         
            +
                  # Receive a 'picture' message from the socket (or actor). This is a    
         
     | 
| 
      
 545 
     | 
    
         
            +
                  # va_list version of zsock_recv (), so please consult its documentation
         
     | 
| 
      
 546 
     | 
    
         
            +
                  # for the details.                                                     
         
     | 
| 
      
 547 
     | 
    
         
            +
                  #
         
     | 
| 
      
 548 
     | 
    
         
            +
                  # This is the polymorphic version of #vrecv.
         
     | 
| 
      
 549 
     | 
    
         
            +
                  #
         
     | 
| 
      
 550 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 551 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 552 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 553 
     | 
    
         
            +
                  # @param argptr [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 554 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 555 
     | 
    
         
            +
                  def self.vrecv(self_p, picture, argptr)
         
     | 
| 
      
 556 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 557 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 558 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_vrecv(self_p, picture, argptr)
         
     | 
| 
      
 559 
     | 
    
         
            +
                    result
         
     | 
| 
      
 560 
     | 
    
         
            +
                  end
         
     | 
| 
      
 561 
     | 
    
         
            +
             
     | 
| 
      
 562 
     | 
    
         
            +
                  # Send a binary encoded 'picture' message to the socket (or actor). This 
         
     | 
| 
      
 563 
     | 
    
         
            +
                  # method is similar to zsock_send, except the arguments are encoded in a 
         
     | 
| 
      
 564 
     | 
    
         
            +
                  # binary format that is compatible with zproto, and is designed to reduce
         
     | 
| 
      
 565 
     | 
    
         
            +
                  # memory allocations. The pattern argument is a string that defines the  
         
     | 
| 
      
 566 
     | 
    
         
            +
                  # type of each argument. Supports these argument types:                  
         
     | 
| 
      
 567 
     | 
    
         
            +
                  #                                                                        
         
     | 
| 
      
 568 
     | 
    
         
            +
                  #  pattern    C type                  zproto type:                       
         
     | 
| 
      
 569 
     | 
    
         
            +
                  #     1       uint8_t                 type = "number" size = "1"         
         
     | 
| 
      
 570 
     | 
    
         
            +
                  #     2       uint16_t                type = "number" size = "2"         
         
     | 
| 
      
 571 
     | 
    
         
            +
                  #     4       uint32_t                type = "number" size = "3"         
         
     | 
| 
      
 572 
     | 
    
         
            +
                  #     8       uint64_t                type = "number" size = "4"         
         
     | 
| 
      
 573 
     | 
    
         
            +
                  #     s       char *, 0-255 chars     type = "string"                    
         
     | 
| 
      
 574 
     | 
    
         
            +
                  #     S       char *, 0-2^32-1 chars  type = "longstr"                   
         
     | 
| 
      
 575 
     | 
    
         
            +
                  #     c       zchunk_t *              type = "chunk"                     
         
     | 
| 
      
 576 
     | 
    
         
            +
                  #     f       zframe_t *              type = "frame"                     
         
     | 
| 
      
 577 
     | 
    
         
            +
                  #     u       zuuid_t *               type = "uuid"                      
         
     | 
| 
      
 578 
     | 
    
         
            +
                  #     m       zmsg_t *                type = "msg"                       
         
     | 
| 
      
 579 
     | 
    
         
            +
                  #     p       void *, sends pointer value, only over inproc              
         
     | 
| 
      
 580 
     | 
    
         
            +
                  #                                                                        
         
     | 
| 
      
 581 
     | 
    
         
            +
                  # Does not change or take ownership of any arguments. Returns 0 if       
         
     | 
| 
      
 582 
     | 
    
         
            +
                  # successful, -1 if sending failed for any reason.                       
         
     | 
| 
      
 583 
     | 
    
         
            +
                  #
         
     | 
| 
      
 584 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 585 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 586 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 587 
     | 
    
         
            +
                  def bsend(picture, *args)
         
     | 
| 
      
 588 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 589 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 590 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 591 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_bsend(self_p, picture, *args)
         
     | 
| 
      
 592 
     | 
    
         
            +
                    result
         
     | 
| 
      
 593 
     | 
    
         
            +
                  end
         
     | 
| 
      
 594 
     | 
    
         
            +
             
     | 
| 
      
 595 
     | 
    
         
            +
                  # Send a binary encoded 'picture' message to the socket (or actor). This 
         
     | 
| 
      
 596 
     | 
    
         
            +
                  # method is similar to zsock_send, except the arguments are encoded in a 
         
     | 
| 
      
 597 
     | 
    
         
            +
                  # binary format that is compatible with zproto, and is designed to reduce
         
     | 
| 
      
 598 
     | 
    
         
            +
                  # memory allocations. The pattern argument is a string that defines the  
         
     | 
| 
      
 599 
     | 
    
         
            +
                  # type of each argument. Supports these argument types:                  
         
     | 
| 
      
 600 
     | 
    
         
            +
                  #                                                                        
         
     | 
| 
      
 601 
     | 
    
         
            +
                  #  pattern    C type                  zproto type:                       
         
     | 
| 
      
 602 
     | 
    
         
            +
                  #     1       uint8_t                 type = "number" size = "1"         
         
     | 
| 
      
 603 
     | 
    
         
            +
                  #     2       uint16_t                type = "number" size = "2"         
         
     | 
| 
      
 604 
     | 
    
         
            +
                  #     4       uint32_t                type = "number" size = "3"         
         
     | 
| 
      
 605 
     | 
    
         
            +
                  #     8       uint64_t                type = "number" size = "4"         
         
     | 
| 
      
 606 
     | 
    
         
            +
                  #     s       char *, 0-255 chars     type = "string"                    
         
     | 
| 
      
 607 
     | 
    
         
            +
                  #     S       char *, 0-2^32-1 chars  type = "longstr"                   
         
     | 
| 
      
 608 
     | 
    
         
            +
                  #     c       zchunk_t *              type = "chunk"                     
         
     | 
| 
      
 609 
     | 
    
         
            +
                  #     f       zframe_t *              type = "frame"                     
         
     | 
| 
      
 610 
     | 
    
         
            +
                  #     u       zuuid_t *               type = "uuid"                      
         
     | 
| 
      
 611 
     | 
    
         
            +
                  #     m       zmsg_t *                type = "msg"                       
         
     | 
| 
      
 612 
     | 
    
         
            +
                  #     p       void *, sends pointer value, only over inproc              
         
     | 
| 
      
 613 
     | 
    
         
            +
                  #                                                                        
         
     | 
| 
      
 614 
     | 
    
         
            +
                  # Does not change or take ownership of any arguments. Returns 0 if       
         
     | 
| 
      
 615 
     | 
    
         
            +
                  # successful, -1 if sending failed for any reason.                       
         
     | 
| 
      
 616 
     | 
    
         
            +
                  #
         
     | 
| 
      
 617 
     | 
    
         
            +
                  # This is the polymorphic version of #bsend.
         
     | 
| 
      
 618 
     | 
    
         
            +
                  #
         
     | 
| 
      
 619 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 620 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 621 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 622 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 623 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 624 
     | 
    
         
            +
                  def self.bsend(self_p, picture, *args)
         
     | 
| 
      
 625 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 626 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 627 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_bsend(self_p, picture, *args)
         
     | 
| 
      
 628 
     | 
    
         
            +
                    result
         
     | 
| 
      
 629 
     | 
    
         
            +
                  end
         
     | 
| 
      
 630 
     | 
    
         
            +
             
     | 
| 
      
 631 
     | 
    
         
            +
                  # Receive a binary encoded 'picture' message from the socket (or actor).  
         
     | 
| 
      
 632 
     | 
    
         
            +
                  # This method is similar to zsock_recv, except the arguments are encoded  
         
     | 
| 
      
 633 
     | 
    
         
            +
                  # in a binary format that is compatible with zproto, and is designed to   
         
     | 
| 
      
 634 
     | 
    
         
            +
                  # reduce memory allocations. The pattern argument is a string that defines
         
     | 
| 
      
 635 
     | 
    
         
            +
                  # the type of each argument. See zsock_bsend for the supported argument   
         
     | 
| 
      
 636 
     | 
    
         
            +
                  # types. All arguments must be pointers; this call sets them to point to  
         
     | 
| 
      
 637 
     | 
    
         
            +
                  # values held on a per-socket basis.                                      
         
     | 
| 
      
 638 
     | 
    
         
            +
                  # Note that zsock_brecv creates the returned objects, and the caller must 
         
     | 
| 
      
 639 
     | 
    
         
            +
                  # destroy them when finished with them. The supplied pointers do not need 
         
     | 
| 
      
 640 
     | 
    
         
            +
                  # to be initialized. Returns 0 if successful, or -1 if it failed to read  
         
     | 
| 
      
 641 
     | 
    
         
            +
                  # a message.                                                              
         
     | 
| 
      
 642 
     | 
    
         
            +
                  #
         
     | 
| 
      
 643 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 644 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 645 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 646 
     | 
    
         
            +
                  def brecv(picture, *args)
         
     | 
| 
      
 647 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 648 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 649 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 650 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_brecv(self_p, picture, *args)
         
     | 
| 
      
 651 
     | 
    
         
            +
                    result
         
     | 
| 
      
 652 
     | 
    
         
            +
                  end
         
     | 
| 
      
 653 
     | 
    
         
            +
             
     | 
| 
      
 654 
     | 
    
         
            +
                  # Receive a binary encoded 'picture' message from the socket (or actor).  
         
     | 
| 
      
 655 
     | 
    
         
            +
                  # This method is similar to zsock_recv, except the arguments are encoded  
         
     | 
| 
      
 656 
     | 
    
         
            +
                  # in a binary format that is compatible with zproto, and is designed to   
         
     | 
| 
      
 657 
     | 
    
         
            +
                  # reduce memory allocations. The pattern argument is a string that defines
         
     | 
| 
      
 658 
     | 
    
         
            +
                  # the type of each argument. See zsock_bsend for the supported argument   
         
     | 
| 
      
 659 
     | 
    
         
            +
                  # types. All arguments must be pointers; this call sets them to point to  
         
     | 
| 
      
 660 
     | 
    
         
            +
                  # values held on a per-socket basis.                                      
         
     | 
| 
      
 661 
     | 
    
         
            +
                  # Note that zsock_brecv creates the returned objects, and the caller must 
         
     | 
| 
      
 662 
     | 
    
         
            +
                  # destroy them when finished with them. The supplied pointers do not need 
         
     | 
| 
      
 663 
     | 
    
         
            +
                  # to be initialized. Returns 0 if successful, or -1 if it failed to read  
         
     | 
| 
      
 664 
     | 
    
         
            +
                  # a message.                                                              
         
     | 
| 
      
 665 
     | 
    
         
            +
                  #
         
     | 
| 
      
 666 
     | 
    
         
            +
                  # This is the polymorphic version of #brecv.
         
     | 
| 
      
 667 
     | 
    
         
            +
                  #
         
     | 
| 
      
 668 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 669 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 670 
     | 
    
         
            +
                  # @param picture [String, #to_str, #to_s]
         
     | 
| 
      
 671 
     | 
    
         
            +
                  # @param args [Array<Object>] see https://github.com/ffi/ffi/wiki/examples#using-varargs
         
     | 
| 
      
 672 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 673 
     | 
    
         
            +
                  def self.brecv(self_p, picture, *args)
         
     | 
| 
      
 674 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 675 
     | 
    
         
            +
                    picture = String(picture)
         
     | 
| 
      
 676 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_brecv(self_p, picture, *args)
         
     | 
| 
      
 677 
     | 
    
         
            +
                    result
         
     | 
| 
      
 678 
     | 
    
         
            +
                  end
         
     | 
| 
      
 679 
     | 
    
         
            +
             
     | 
| 
      
 680 
     | 
    
         
            +
                  # Return socket routing ID if any. This returns 0 if the socket is not
         
     | 
| 
      
 681 
     | 
    
         
            +
                  # of type ZMQ_SERVER or if no request was already received on it.     
         
     | 
| 
      
 682 
     | 
    
         
            +
                  #
         
     | 
| 
      
 683 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 684 
     | 
    
         
            +
                  def routing_id()
         
     | 
| 
      
 685 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 686 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 687 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_routing_id(self_p)
         
     | 
| 
      
 688 
     | 
    
         
            +
                    result
         
     | 
| 
      
 689 
     | 
    
         
            +
                  end
         
     | 
| 
      
 690 
     | 
    
         
            +
             
     | 
| 
      
 691 
     | 
    
         
            +
                  # Set routing ID on socket. The socket MUST be of type ZMQ_SERVER.        
         
     | 
| 
      
 692 
     | 
    
         
            +
                  # This will be used when sending messages on the socket via the zsock API.
         
     | 
| 
      
 693 
     | 
    
         
            +
                  #
         
     | 
| 
      
 694 
     | 
    
         
            +
                  # @param routing_id [Integer, #to_int, #to_i]
         
     | 
| 
      
 695 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 696 
     | 
    
         
            +
                  def set_routing_id(routing_id)
         
     | 
| 
      
 697 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 698 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 699 
     | 
    
         
            +
                    routing_id = Integer(routing_id)
         
     | 
| 
      
 700 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_routing_id(self_p, routing_id)
         
     | 
| 
      
 701 
     | 
    
         
            +
                    result
         
     | 
| 
      
 702 
     | 
    
         
            +
                  end
         
     | 
| 
      
 703 
     | 
    
         
            +
             
     | 
| 
      
 704 
     | 
    
         
            +
                  # Set socket to use unbounded pipes (HWM=0); use this in cases when you are
         
     | 
| 
      
 705 
     | 
    
         
            +
                  # totally certain the message volume can fit in memory. This method works  
         
     | 
| 
      
 706 
     | 
    
         
            +
                  # across all versions of ZeroMQ. Takes a polymorphic socket reference.     
         
     | 
| 
      
 707 
     | 
    
         
            +
                  #
         
     | 
| 
      
 708 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 709 
     | 
    
         
            +
                  def set_unbounded()
         
     | 
| 
      
 710 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 711 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 712 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_unbounded(self_p)
         
     | 
| 
      
 713 
     | 
    
         
            +
                    result
         
     | 
| 
      
 714 
     | 
    
         
            +
                  end
         
     | 
| 
      
 715 
     | 
    
         
            +
             
     | 
| 
      
 716 
     | 
    
         
            +
                  # Set socket to use unbounded pipes (HWM=0); use this in cases when you are
         
     | 
| 
      
 717 
     | 
    
         
            +
                  # totally certain the message volume can fit in memory. This method works  
         
     | 
| 
      
 718 
     | 
    
         
            +
                  # across all versions of ZeroMQ. Takes a polymorphic socket reference.     
         
     | 
| 
      
 719 
     | 
    
         
            +
                  #
         
     | 
| 
      
 720 
     | 
    
         
            +
                  # This is the polymorphic version of #set_unbounded.
         
     | 
| 
      
 721 
     | 
    
         
            +
                  #
         
     | 
| 
      
 722 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 723 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 724 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 725 
     | 
    
         
            +
                  def self.set_unbounded(self_p)
         
     | 
| 
      
 726 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 727 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_unbounded(self_p)
         
     | 
| 
      
 728 
     | 
    
         
            +
                    result
         
     | 
| 
      
 729 
     | 
    
         
            +
                  end
         
     | 
| 
      
 730 
     | 
    
         
            +
             
     | 
| 
      
 731 
     | 
    
         
            +
                  # Send a signal over a socket. A signal is a short message carrying a   
         
     | 
| 
      
 732 
     | 
    
         
            +
                  # success/failure code (by convention, 0 means OK). Signals are encoded 
         
     | 
| 
      
 733 
     | 
    
         
            +
                  # to be distinguishable from "normal" messages. Accepts a zsock_t or a  
         
     | 
| 
      
 734 
     | 
    
         
            +
                  # zactor_t argument, and returns 0 if successful, -1 if the signal could
         
     | 
| 
      
 735 
     | 
    
         
            +
                  # not be sent. Takes a polymorphic socket reference.                    
         
     | 
| 
      
 736 
     | 
    
         
            +
                  #
         
     | 
| 
      
 737 
     | 
    
         
            +
                  # @param status [Integer, #to_int, #to_i]
         
     | 
| 
      
 738 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 739 
     | 
    
         
            +
                  def signal(status)
         
     | 
| 
      
 740 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 741 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 742 
     | 
    
         
            +
                    status = Integer(status)
         
     | 
| 
      
 743 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_signal(self_p, status)
         
     | 
| 
      
 744 
     | 
    
         
            +
                    result
         
     | 
| 
      
 745 
     | 
    
         
            +
                  end
         
     | 
| 
      
 746 
     | 
    
         
            +
             
     | 
| 
      
 747 
     | 
    
         
            +
                  # Send a signal over a socket. A signal is a short message carrying a   
         
     | 
| 
      
 748 
     | 
    
         
            +
                  # success/failure code (by convention, 0 means OK). Signals are encoded 
         
     | 
| 
      
 749 
     | 
    
         
            +
                  # to be distinguishable from "normal" messages. Accepts a zsock_t or a  
         
     | 
| 
      
 750 
     | 
    
         
            +
                  # zactor_t argument, and returns 0 if successful, -1 if the signal could
         
     | 
| 
      
 751 
     | 
    
         
            +
                  # not be sent. Takes a polymorphic socket reference.                    
         
     | 
| 
      
 752 
     | 
    
         
            +
                  #
         
     | 
| 
      
 753 
     | 
    
         
            +
                  # This is the polymorphic version of #signal.
         
     | 
| 
      
 754 
     | 
    
         
            +
                  #
         
     | 
| 
      
 755 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 756 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 757 
     | 
    
         
            +
                  # @param status [Integer, #to_int, #to_i]
         
     | 
| 
      
 758 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 759 
     | 
    
         
            +
                  def self.signal(self_p, status)
         
     | 
| 
      
 760 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 761 
     | 
    
         
            +
                    status = Integer(status)
         
     | 
| 
      
 762 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_signal(self_p, status)
         
     | 
| 
      
 763 
     | 
    
         
            +
                    result
         
     | 
| 
      
 764 
     | 
    
         
            +
                  end
         
     | 
| 
      
 765 
     | 
    
         
            +
             
     | 
| 
      
 766 
     | 
    
         
            +
                  # Wait on a signal. Use this to coordinate between threads, over pipe  
         
     | 
| 
      
 767 
     | 
    
         
            +
                  # pairs. Blocks until the signal is received. Returns -1 on error, 0 or
         
     | 
| 
      
 768 
     | 
    
         
            +
                  # greater on success. Accepts a zsock_t or a zactor_t as argument.     
         
     | 
| 
      
 769 
     | 
    
         
            +
                  # Takes a polymorphic socket reference.                                
         
     | 
| 
      
 770 
     | 
    
         
            +
                  #
         
     | 
| 
      
 771 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 772 
     | 
    
         
            +
                  def wait()
         
     | 
| 
      
 773 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 774 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 775 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_wait(self_p)
         
     | 
| 
      
 776 
     | 
    
         
            +
                    result
         
     | 
| 
      
 777 
     | 
    
         
            +
                  end
         
     | 
| 
      
 778 
     | 
    
         
            +
             
     | 
| 
      
 779 
     | 
    
         
            +
                  # Wait on a signal. Use this to coordinate between threads, over pipe  
         
     | 
| 
      
 780 
     | 
    
         
            +
                  # pairs. Blocks until the signal is received. Returns -1 on error, 0 or
         
     | 
| 
      
 781 
     | 
    
         
            +
                  # greater on success. Accepts a zsock_t or a zactor_t as argument.     
         
     | 
| 
      
 782 
     | 
    
         
            +
                  # Takes a polymorphic socket reference.                                
         
     | 
| 
      
 783 
     | 
    
         
            +
                  #
         
     | 
| 
      
 784 
     | 
    
         
            +
                  # This is the polymorphic version of #wait.
         
     | 
| 
      
 785 
     | 
    
         
            +
                  #
         
     | 
| 
      
 786 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 787 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 788 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 789 
     | 
    
         
            +
                  def self.wait(self_p)
         
     | 
| 
      
 790 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 791 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_wait(self_p)
         
     | 
| 
      
 792 
     | 
    
         
            +
                    result
         
     | 
| 
      
 793 
     | 
    
         
            +
                  end
         
     | 
| 
      
 794 
     | 
    
         
            +
             
     | 
| 
      
 795 
     | 
    
         
            +
                  # If there is a partial message still waiting on the socket, remove and    
         
     | 
| 
      
 796 
     | 
    
         
            +
                  # discard it. This is useful when reading partial messages, to get specific
         
     | 
| 
      
 797 
     | 
    
         
            +
                  # message types.                                                           
         
     | 
| 
      
 798 
     | 
    
         
            +
                  #
         
     | 
| 
      
 799 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 800 
     | 
    
         
            +
                  def flush()
         
     | 
| 
      
 801 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 802 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 803 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_flush(self_p)
         
     | 
| 
      
 804 
     | 
    
         
            +
                    result
         
     | 
| 
      
 805 
     | 
    
         
            +
                  end
         
     | 
| 
      
 806 
     | 
    
         
            +
             
     | 
| 
      
 807 
     | 
    
         
            +
                  # If there is a partial message still waiting on the socket, remove and    
         
     | 
| 
      
 808 
     | 
    
         
            +
                  # discard it. This is useful when reading partial messages, to get specific
         
     | 
| 
      
 809 
     | 
    
         
            +
                  # message types.                                                           
         
     | 
| 
      
 810 
     | 
    
         
            +
                  #
         
     | 
| 
      
 811 
     | 
    
         
            +
                  # This is the polymorphic version of #flush.
         
     | 
| 
      
 812 
     | 
    
         
            +
                  #
         
     | 
| 
      
 813 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 814 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 815 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 816 
     | 
    
         
            +
                  def self.flush(self_p)
         
     | 
| 
      
 817 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 818 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_flush(self_p)
         
     | 
| 
      
 819 
     | 
    
         
            +
                    result
         
     | 
| 
      
 820 
     | 
    
         
            +
                  end
         
     | 
| 
      
 821 
     | 
    
         
            +
             
     | 
| 
      
 822 
     | 
    
         
            +
                  # Probe the supplied object, and report if it looks like a zsock_t.
         
     | 
| 
      
 823 
     | 
    
         
            +
                  # Takes a polymorphic socket reference.                            
         
     | 
| 
      
 824 
     | 
    
         
            +
                  #
         
     | 
| 
      
 825 
     | 
    
         
            +
                  # @param self_ [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 826 
     | 
    
         
            +
                  # @return [Boolean]
         
     | 
| 
      
 827 
     | 
    
         
            +
                  def self.is(self_)
         
     | 
| 
      
 828 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_is(self_)
         
     | 
| 
      
 829 
     | 
    
         
            +
                    result
         
     | 
| 
      
 830 
     | 
    
         
            +
                  end
         
     | 
| 
      
 831 
     | 
    
         
            +
             
     | 
| 
      
 832 
     | 
    
         
            +
                  # Probe the supplied reference. If it looks like a zsock_t instance, return
         
     | 
| 
      
 833 
     | 
    
         
            +
                  # the underlying libzmq socket handle; else if it looks like a file        
         
     | 
| 
      
 834 
     | 
    
         
            +
                  # descriptor, return NULL; else if it looks like a libzmq socket handle,   
         
     | 
| 
      
 835 
     | 
    
         
            +
                  # return the supplied value. Takes a polymorphic socket reference.         
         
     | 
| 
      
 836 
     | 
    
         
            +
                  #
         
     | 
| 
      
 837 
     | 
    
         
            +
                  # @param self_ [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 838 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 839 
     | 
    
         
            +
                  def self.resolve(self_)
         
     | 
| 
      
 840 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_resolve(self_)
         
     | 
| 
      
 841 
     | 
    
         
            +
                    result
         
     | 
| 
      
 842 
     | 
    
         
            +
                  end
         
     | 
| 
      
 843 
     | 
    
         
            +
             
     | 
| 
      
 844 
     | 
    
         
            +
                  # Get socket option `tos`.
         
     | 
| 
      
 845 
     | 
    
         
            +
                  #
         
     | 
| 
      
 846 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 847 
     | 
    
         
            +
                  def tos()
         
     | 
| 
      
 848 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 849 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 850 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tos(self_p)
         
     | 
| 
      
 851 
     | 
    
         
            +
                    result
         
     | 
| 
      
 852 
     | 
    
         
            +
                  end
         
     | 
| 
      
 853 
     | 
    
         
            +
             
     | 
| 
      
 854 
     | 
    
         
            +
                  # Get socket option `tos`.
         
     | 
| 
      
 855 
     | 
    
         
            +
                  #
         
     | 
| 
      
 856 
     | 
    
         
            +
                  # This is the polymorphic version of #tos.
         
     | 
| 
      
 857 
     | 
    
         
            +
                  #
         
     | 
| 
      
 858 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 859 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 860 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 861 
     | 
    
         
            +
                  def self.tos(self_p)
         
     | 
| 
      
 862 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 863 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tos(self_p)
         
     | 
| 
      
 864 
     | 
    
         
            +
                    result
         
     | 
| 
      
 865 
     | 
    
         
            +
                  end
         
     | 
| 
      
 866 
     | 
    
         
            +
             
     | 
| 
      
 867 
     | 
    
         
            +
                  # Set socket option `tos`.
         
     | 
| 
      
 868 
     | 
    
         
            +
                  #
         
     | 
| 
      
 869 
     | 
    
         
            +
                  # @param tos [Integer, #to_int, #to_i]
         
     | 
| 
      
 870 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 871 
     | 
    
         
            +
                  def set_tos(tos)
         
     | 
| 
      
 872 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 873 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 874 
     | 
    
         
            +
                    tos = Integer(tos)
         
     | 
| 
      
 875 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tos(self_p, tos)
         
     | 
| 
      
 876 
     | 
    
         
            +
                    result
         
     | 
| 
      
 877 
     | 
    
         
            +
                  end
         
     | 
| 
      
 878 
     | 
    
         
            +
             
     | 
| 
      
 879 
     | 
    
         
            +
                  # Set socket option `tos`.
         
     | 
| 
      
 880 
     | 
    
         
            +
                  #
         
     | 
| 
      
 881 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tos.
         
     | 
| 
      
 882 
     | 
    
         
            +
                  #
         
     | 
| 
      
 883 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 884 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 885 
     | 
    
         
            +
                  # @param tos [Integer, #to_int, #to_i]
         
     | 
| 
      
 886 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 887 
     | 
    
         
            +
                  def self.set_tos(self_p, tos)
         
     | 
| 
      
 888 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 889 
     | 
    
         
            +
                    tos = Integer(tos)
         
     | 
| 
      
 890 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tos(self_p, tos)
         
     | 
| 
      
 891 
     | 
    
         
            +
                    result
         
     | 
| 
      
 892 
     | 
    
         
            +
                  end
         
     | 
| 
      
 893 
     | 
    
         
            +
             
     | 
| 
      
 894 
     | 
    
         
            +
                  # Set socket option `router_handover`.
         
     | 
| 
      
 895 
     | 
    
         
            +
                  #
         
     | 
| 
      
 896 
     | 
    
         
            +
                  # @param router_handover [Integer, #to_int, #to_i]
         
     | 
| 
      
 897 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 898 
     | 
    
         
            +
                  def set_router_handover(router_handover)
         
     | 
| 
      
 899 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 900 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 901 
     | 
    
         
            +
                    router_handover = Integer(router_handover)
         
     | 
| 
      
 902 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_handover(self_p, router_handover)
         
     | 
| 
      
 903 
     | 
    
         
            +
                    result
         
     | 
| 
      
 904 
     | 
    
         
            +
                  end
         
     | 
| 
      
 905 
     | 
    
         
            +
             
     | 
| 
      
 906 
     | 
    
         
            +
                  # Set socket option `router_handover`.
         
     | 
| 
      
 907 
     | 
    
         
            +
                  #
         
     | 
| 
      
 908 
     | 
    
         
            +
                  # This is the polymorphic version of #set_router_handover.
         
     | 
| 
      
 909 
     | 
    
         
            +
                  #
         
     | 
| 
      
 910 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 911 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 912 
     | 
    
         
            +
                  # @param router_handover [Integer, #to_int, #to_i]
         
     | 
| 
      
 913 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 914 
     | 
    
         
            +
                  def self.set_router_handover(self_p, router_handover)
         
     | 
| 
      
 915 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 916 
     | 
    
         
            +
                    router_handover = Integer(router_handover)
         
     | 
| 
      
 917 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_handover(self_p, router_handover)
         
     | 
| 
      
 918 
     | 
    
         
            +
                    result
         
     | 
| 
      
 919 
     | 
    
         
            +
                  end
         
     | 
| 
      
 920 
     | 
    
         
            +
             
     | 
| 
      
 921 
     | 
    
         
            +
                  # Set socket option `router_mandatory`.
         
     | 
| 
      
 922 
     | 
    
         
            +
                  #
         
     | 
| 
      
 923 
     | 
    
         
            +
                  # @param router_mandatory [Integer, #to_int, #to_i]
         
     | 
| 
      
 924 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 925 
     | 
    
         
            +
                  def set_router_mandatory(router_mandatory)
         
     | 
| 
      
 926 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 927 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 928 
     | 
    
         
            +
                    router_mandatory = Integer(router_mandatory)
         
     | 
| 
      
 929 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_mandatory(self_p, router_mandatory)
         
     | 
| 
      
 930 
     | 
    
         
            +
                    result
         
     | 
| 
      
 931 
     | 
    
         
            +
                  end
         
     | 
| 
      
 932 
     | 
    
         
            +
             
     | 
| 
      
 933 
     | 
    
         
            +
                  # Set socket option `router_mandatory`.
         
     | 
| 
      
 934 
     | 
    
         
            +
                  #
         
     | 
| 
      
 935 
     | 
    
         
            +
                  # This is the polymorphic version of #set_router_mandatory.
         
     | 
| 
      
 936 
     | 
    
         
            +
                  #
         
     | 
| 
      
 937 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 938 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 939 
     | 
    
         
            +
                  # @param router_mandatory [Integer, #to_int, #to_i]
         
     | 
| 
      
 940 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 941 
     | 
    
         
            +
                  def self.set_router_mandatory(self_p, router_mandatory)
         
     | 
| 
      
 942 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 943 
     | 
    
         
            +
                    router_mandatory = Integer(router_mandatory)
         
     | 
| 
      
 944 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_mandatory(self_p, router_mandatory)
         
     | 
| 
      
 945 
     | 
    
         
            +
                    result
         
     | 
| 
      
 946 
     | 
    
         
            +
                  end
         
     | 
| 
      
 947 
     | 
    
         
            +
             
     | 
| 
      
 948 
     | 
    
         
            +
                  # Set socket option `probe_router`.
         
     | 
| 
      
 949 
     | 
    
         
            +
                  #
         
     | 
| 
      
 950 
     | 
    
         
            +
                  # @param probe_router [Integer, #to_int, #to_i]
         
     | 
| 
      
 951 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 952 
     | 
    
         
            +
                  def set_probe_router(probe_router)
         
     | 
| 
      
 953 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 954 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 955 
     | 
    
         
            +
                    probe_router = Integer(probe_router)
         
     | 
| 
      
 956 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_probe_router(self_p, probe_router)
         
     | 
| 
      
 957 
     | 
    
         
            +
                    result
         
     | 
| 
      
 958 
     | 
    
         
            +
                  end
         
     | 
| 
      
 959 
     | 
    
         
            +
             
     | 
| 
      
 960 
     | 
    
         
            +
                  # Set socket option `probe_router`.
         
     | 
| 
      
 961 
     | 
    
         
            +
                  #
         
     | 
| 
      
 962 
     | 
    
         
            +
                  # This is the polymorphic version of #set_probe_router.
         
     | 
| 
      
 963 
     | 
    
         
            +
                  #
         
     | 
| 
      
 964 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 965 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 966 
     | 
    
         
            +
                  # @param probe_router [Integer, #to_int, #to_i]
         
     | 
| 
      
 967 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 968 
     | 
    
         
            +
                  def self.set_probe_router(self_p, probe_router)
         
     | 
| 
      
 969 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 970 
     | 
    
         
            +
                    probe_router = Integer(probe_router)
         
     | 
| 
      
 971 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_probe_router(self_p, probe_router)
         
     | 
| 
      
 972 
     | 
    
         
            +
                    result
         
     | 
| 
      
 973 
     | 
    
         
            +
                  end
         
     | 
| 
      
 974 
     | 
    
         
            +
             
     | 
| 
      
 975 
     | 
    
         
            +
                  # Set socket option `req_relaxed`.
         
     | 
| 
      
 976 
     | 
    
         
            +
                  #
         
     | 
| 
      
 977 
     | 
    
         
            +
                  # @param req_relaxed [Integer, #to_int, #to_i]
         
     | 
| 
      
 978 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 979 
     | 
    
         
            +
                  def set_req_relaxed(req_relaxed)
         
     | 
| 
      
 980 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 981 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 982 
     | 
    
         
            +
                    req_relaxed = Integer(req_relaxed)
         
     | 
| 
      
 983 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_req_relaxed(self_p, req_relaxed)
         
     | 
| 
      
 984 
     | 
    
         
            +
                    result
         
     | 
| 
      
 985 
     | 
    
         
            +
                  end
         
     | 
| 
      
 986 
     | 
    
         
            +
             
     | 
| 
      
 987 
     | 
    
         
            +
                  # Set socket option `req_relaxed`.
         
     | 
| 
      
 988 
     | 
    
         
            +
                  #
         
     | 
| 
      
 989 
     | 
    
         
            +
                  # This is the polymorphic version of #set_req_relaxed.
         
     | 
| 
      
 990 
     | 
    
         
            +
                  #
         
     | 
| 
      
 991 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 992 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 993 
     | 
    
         
            +
                  # @param req_relaxed [Integer, #to_int, #to_i]
         
     | 
| 
      
 994 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 995 
     | 
    
         
            +
                  def self.set_req_relaxed(self_p, req_relaxed)
         
     | 
| 
      
 996 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 997 
     | 
    
         
            +
                    req_relaxed = Integer(req_relaxed)
         
     | 
| 
      
 998 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_req_relaxed(self_p, req_relaxed)
         
     | 
| 
      
 999 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1000 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1001 
     | 
    
         
            +
             
     | 
| 
      
 1002 
     | 
    
         
            +
                  # Set socket option `req_correlate`.
         
     | 
| 
      
 1003 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1004 
     | 
    
         
            +
                  # @param req_correlate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1005 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1006 
     | 
    
         
            +
                  def set_req_correlate(req_correlate)
         
     | 
| 
      
 1007 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1008 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1009 
     | 
    
         
            +
                    req_correlate = Integer(req_correlate)
         
     | 
| 
      
 1010 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_req_correlate(self_p, req_correlate)
         
     | 
| 
      
 1011 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1012 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1013 
     | 
    
         
            +
             
     | 
| 
      
 1014 
     | 
    
         
            +
                  # Set socket option `req_correlate`.
         
     | 
| 
      
 1015 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1016 
     | 
    
         
            +
                  # This is the polymorphic version of #set_req_correlate.
         
     | 
| 
      
 1017 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1018 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1019 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1020 
     | 
    
         
            +
                  # @param req_correlate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1021 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1022 
     | 
    
         
            +
                  def self.set_req_correlate(self_p, req_correlate)
         
     | 
| 
      
 1023 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1024 
     | 
    
         
            +
                    req_correlate = Integer(req_correlate)
         
     | 
| 
      
 1025 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_req_correlate(self_p, req_correlate)
         
     | 
| 
      
 1026 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1027 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1028 
     | 
    
         
            +
             
     | 
| 
      
 1029 
     | 
    
         
            +
                  # Set socket option `conflate`.
         
     | 
| 
      
 1030 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1031 
     | 
    
         
            +
                  # @param conflate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1032 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1033 
     | 
    
         
            +
                  def set_conflate(conflate)
         
     | 
| 
      
 1034 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1035 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1036 
     | 
    
         
            +
                    conflate = Integer(conflate)
         
     | 
| 
      
 1037 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_conflate(self_p, conflate)
         
     | 
| 
      
 1038 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1039 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1040 
     | 
    
         
            +
             
     | 
| 
      
 1041 
     | 
    
         
            +
                  # Set socket option `conflate`.
         
     | 
| 
      
 1042 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1043 
     | 
    
         
            +
                  # This is the polymorphic version of #set_conflate.
         
     | 
| 
      
 1044 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1045 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1046 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1047 
     | 
    
         
            +
                  # @param conflate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1048 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1049 
     | 
    
         
            +
                  def self.set_conflate(self_p, conflate)
         
     | 
| 
      
 1050 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1051 
     | 
    
         
            +
                    conflate = Integer(conflate)
         
     | 
| 
      
 1052 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_conflate(self_p, conflate)
         
     | 
| 
      
 1053 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1054 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1055 
     | 
    
         
            +
             
     | 
| 
      
 1056 
     | 
    
         
            +
                  # Get socket option `zap_domain`.
         
     | 
| 
      
 1057 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1058 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1059 
     | 
    
         
            +
                  def zap_domain()
         
     | 
| 
      
 1060 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1061 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1062 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_zap_domain(self_p)
         
     | 
| 
      
 1063 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1064 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1065 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1066 
     | 
    
         
            +
             
     | 
| 
      
 1067 
     | 
    
         
            +
                  # Get socket option `zap_domain`.
         
     | 
| 
      
 1068 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1069 
     | 
    
         
            +
                  # This is the polymorphic version of #zap_domain.
         
     | 
| 
      
 1070 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1071 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1072 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1073 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1074 
     | 
    
         
            +
                  def self.zap_domain(self_p)
         
     | 
| 
      
 1075 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1076 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_zap_domain(self_p)
         
     | 
| 
      
 1077 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1078 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1079 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1080 
     | 
    
         
            +
             
     | 
| 
      
 1081 
     | 
    
         
            +
                  # Set socket option `zap_domain`.
         
     | 
| 
      
 1082 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1083 
     | 
    
         
            +
                  # @param zap_domain [String, #to_str, #to_s]
         
     | 
| 
      
 1084 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1085 
     | 
    
         
            +
                  def set_zap_domain(zap_domain)
         
     | 
| 
      
 1086 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1087 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1088 
     | 
    
         
            +
                    zap_domain = String(zap_domain)
         
     | 
| 
      
 1089 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_zap_domain(self_p, zap_domain)
         
     | 
| 
      
 1090 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1091 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1092 
     | 
    
         
            +
             
     | 
| 
      
 1093 
     | 
    
         
            +
                  # Set socket option `zap_domain`.
         
     | 
| 
      
 1094 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1095 
     | 
    
         
            +
                  # This is the polymorphic version of #set_zap_domain.
         
     | 
| 
      
 1096 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1097 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1098 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1099 
     | 
    
         
            +
                  # @param zap_domain [String, #to_str, #to_s]
         
     | 
| 
      
 1100 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1101 
     | 
    
         
            +
                  def self.set_zap_domain(self_p, zap_domain)
         
     | 
| 
      
 1102 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1103 
     | 
    
         
            +
                    zap_domain = String(zap_domain)
         
     | 
| 
      
 1104 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_zap_domain(self_p, zap_domain)
         
     | 
| 
      
 1105 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1106 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1107 
     | 
    
         
            +
             
     | 
| 
      
 1108 
     | 
    
         
            +
                  # Get socket option `mechanism`.
         
     | 
| 
      
 1109 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1110 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1111 
     | 
    
         
            +
                  def mechanism()
         
     | 
| 
      
 1112 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1113 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1114 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_mechanism(self_p)
         
     | 
| 
      
 1115 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1116 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1117 
     | 
    
         
            +
             
     | 
| 
      
 1118 
     | 
    
         
            +
                  # Get socket option `mechanism`.
         
     | 
| 
      
 1119 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1120 
     | 
    
         
            +
                  # This is the polymorphic version of #mechanism.
         
     | 
| 
      
 1121 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1122 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1123 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1124 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1125 
     | 
    
         
            +
                  def self.mechanism(self_p)
         
     | 
| 
      
 1126 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1127 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_mechanism(self_p)
         
     | 
| 
      
 1128 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1129 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1130 
     | 
    
         
            +
             
     | 
| 
      
 1131 
     | 
    
         
            +
                  # Get socket option `plain_server`.
         
     | 
| 
      
 1132 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1133 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1134 
     | 
    
         
            +
                  def plain_server()
         
     | 
| 
      
 1135 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1136 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1137 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_server(self_p)
         
     | 
| 
      
 1138 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1139 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1140 
     | 
    
         
            +
             
     | 
| 
      
 1141 
     | 
    
         
            +
                  # Get socket option `plain_server`.
         
     | 
| 
      
 1142 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1143 
     | 
    
         
            +
                  # This is the polymorphic version of #plain_server.
         
     | 
| 
      
 1144 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1145 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1146 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1147 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1148 
     | 
    
         
            +
                  def self.plain_server(self_p)
         
     | 
| 
      
 1149 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1150 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_server(self_p)
         
     | 
| 
      
 1151 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1152 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1153 
     | 
    
         
            +
             
     | 
| 
      
 1154 
     | 
    
         
            +
                  # Set socket option `plain_server`.
         
     | 
| 
      
 1155 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1156 
     | 
    
         
            +
                  # @param plain_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1157 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1158 
     | 
    
         
            +
                  def set_plain_server(plain_server)
         
     | 
| 
      
 1159 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1160 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1161 
     | 
    
         
            +
                    plain_server = Integer(plain_server)
         
     | 
| 
      
 1162 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_server(self_p, plain_server)
         
     | 
| 
      
 1163 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1164 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1165 
     | 
    
         
            +
             
     | 
| 
      
 1166 
     | 
    
         
            +
                  # Set socket option `plain_server`.
         
     | 
| 
      
 1167 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1168 
     | 
    
         
            +
                  # This is the polymorphic version of #set_plain_server.
         
     | 
| 
      
 1169 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1170 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1171 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1172 
     | 
    
         
            +
                  # @param plain_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1173 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1174 
     | 
    
         
            +
                  def self.set_plain_server(self_p, plain_server)
         
     | 
| 
      
 1175 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1176 
     | 
    
         
            +
                    plain_server = Integer(plain_server)
         
     | 
| 
      
 1177 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_server(self_p, plain_server)
         
     | 
| 
      
 1178 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1179 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1180 
     | 
    
         
            +
             
     | 
| 
      
 1181 
     | 
    
         
            +
                  # Get socket option `plain_username`.
         
     | 
| 
      
 1182 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1183 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1184 
     | 
    
         
            +
                  def plain_username()
         
     | 
| 
      
 1185 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1186 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1187 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_username(self_p)
         
     | 
| 
      
 1188 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1189 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1190 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1191 
     | 
    
         
            +
             
     | 
| 
      
 1192 
     | 
    
         
            +
                  # Get socket option `plain_username`.
         
     | 
| 
      
 1193 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1194 
     | 
    
         
            +
                  # This is the polymorphic version of #plain_username.
         
     | 
| 
      
 1195 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1196 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1197 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1198 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1199 
     | 
    
         
            +
                  def self.plain_username(self_p)
         
     | 
| 
      
 1200 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1201 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_username(self_p)
         
     | 
| 
      
 1202 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1203 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1204 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1205 
     | 
    
         
            +
             
     | 
| 
      
 1206 
     | 
    
         
            +
                  # Set socket option `plain_username`.
         
     | 
| 
      
 1207 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1208 
     | 
    
         
            +
                  # @param plain_username [String, #to_str, #to_s]
         
     | 
| 
      
 1209 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1210 
     | 
    
         
            +
                  def set_plain_username(plain_username)
         
     | 
| 
      
 1211 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1212 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1213 
     | 
    
         
            +
                    plain_username = String(plain_username)
         
     | 
| 
      
 1214 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_username(self_p, plain_username)
         
     | 
| 
      
 1215 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1216 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1217 
     | 
    
         
            +
             
     | 
| 
      
 1218 
     | 
    
         
            +
                  # Set socket option `plain_username`.
         
     | 
| 
      
 1219 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1220 
     | 
    
         
            +
                  # This is the polymorphic version of #set_plain_username.
         
     | 
| 
      
 1221 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1222 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1223 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1224 
     | 
    
         
            +
                  # @param plain_username [String, #to_str, #to_s]
         
     | 
| 
      
 1225 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1226 
     | 
    
         
            +
                  def self.set_plain_username(self_p, plain_username)
         
     | 
| 
      
 1227 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1228 
     | 
    
         
            +
                    plain_username = String(plain_username)
         
     | 
| 
      
 1229 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_username(self_p, plain_username)
         
     | 
| 
      
 1230 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1231 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1232 
     | 
    
         
            +
             
     | 
| 
      
 1233 
     | 
    
         
            +
                  # Get socket option `plain_password`.
         
     | 
| 
      
 1234 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1235 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1236 
     | 
    
         
            +
                  def plain_password()
         
     | 
| 
      
 1237 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1238 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1239 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_password(self_p)
         
     | 
| 
      
 1240 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1241 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1242 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1243 
     | 
    
         
            +
             
     | 
| 
      
 1244 
     | 
    
         
            +
                  # Get socket option `plain_password`.
         
     | 
| 
      
 1245 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1246 
     | 
    
         
            +
                  # This is the polymorphic version of #plain_password.
         
     | 
| 
      
 1247 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1248 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1249 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1250 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1251 
     | 
    
         
            +
                  def self.plain_password(self_p)
         
     | 
| 
      
 1252 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1253 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_plain_password(self_p)
         
     | 
| 
      
 1254 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1255 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1256 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1257 
     | 
    
         
            +
             
     | 
| 
      
 1258 
     | 
    
         
            +
                  # Set socket option `plain_password`.
         
     | 
| 
      
 1259 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1260 
     | 
    
         
            +
                  # @param plain_password [String, #to_str, #to_s]
         
     | 
| 
      
 1261 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1262 
     | 
    
         
            +
                  def set_plain_password(plain_password)
         
     | 
| 
      
 1263 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1264 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1265 
     | 
    
         
            +
                    plain_password = String(plain_password)
         
     | 
| 
      
 1266 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_password(self_p, plain_password)
         
     | 
| 
      
 1267 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1268 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1269 
     | 
    
         
            +
             
     | 
| 
      
 1270 
     | 
    
         
            +
                  # Set socket option `plain_password`.
         
     | 
| 
      
 1271 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1272 
     | 
    
         
            +
                  # This is the polymorphic version of #set_plain_password.
         
     | 
| 
      
 1273 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1274 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1275 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1276 
     | 
    
         
            +
                  # @param plain_password [String, #to_str, #to_s]
         
     | 
| 
      
 1277 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1278 
     | 
    
         
            +
                  def self.set_plain_password(self_p, plain_password)
         
     | 
| 
      
 1279 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1280 
     | 
    
         
            +
                    plain_password = String(plain_password)
         
     | 
| 
      
 1281 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_plain_password(self_p, plain_password)
         
     | 
| 
      
 1282 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1283 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1284 
     | 
    
         
            +
             
     | 
| 
      
 1285 
     | 
    
         
            +
                  # Get socket option `curve_server`.
         
     | 
| 
      
 1286 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1287 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1288 
     | 
    
         
            +
                  def curve_server()
         
     | 
| 
      
 1289 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1290 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1291 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_server(self_p)
         
     | 
| 
      
 1292 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1293 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1294 
     | 
    
         
            +
             
     | 
| 
      
 1295 
     | 
    
         
            +
                  # Get socket option `curve_server`.
         
     | 
| 
      
 1296 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1297 
     | 
    
         
            +
                  # This is the polymorphic version of #curve_server.
         
     | 
| 
      
 1298 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1299 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1300 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1301 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1302 
     | 
    
         
            +
                  def self.curve_server(self_p)
         
     | 
| 
      
 1303 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1304 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_server(self_p)
         
     | 
| 
      
 1305 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1306 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1307 
     | 
    
         
            +
             
     | 
| 
      
 1308 
     | 
    
         
            +
                  # Set socket option `curve_server`.
         
     | 
| 
      
 1309 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1310 
     | 
    
         
            +
                  # @param curve_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1311 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1312 
     | 
    
         
            +
                  def set_curve_server(curve_server)
         
     | 
| 
      
 1313 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1314 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1315 
     | 
    
         
            +
                    curve_server = Integer(curve_server)
         
     | 
| 
      
 1316 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_server(self_p, curve_server)
         
     | 
| 
      
 1317 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1318 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1319 
     | 
    
         
            +
             
     | 
| 
      
 1320 
     | 
    
         
            +
                  # Set socket option `curve_server`.
         
     | 
| 
      
 1321 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1322 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_server.
         
     | 
| 
      
 1323 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1324 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1325 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1326 
     | 
    
         
            +
                  # @param curve_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1327 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1328 
     | 
    
         
            +
                  def self.set_curve_server(self_p, curve_server)
         
     | 
| 
      
 1329 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1330 
     | 
    
         
            +
                    curve_server = Integer(curve_server)
         
     | 
| 
      
 1331 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_server(self_p, curve_server)
         
     | 
| 
      
 1332 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1333 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1334 
     | 
    
         
            +
             
     | 
| 
      
 1335 
     | 
    
         
            +
                  # Get socket option `curve_publickey`.
         
     | 
| 
      
 1336 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1337 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1338 
     | 
    
         
            +
                  def curve_publickey()
         
     | 
| 
      
 1339 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1340 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1341 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_publickey(self_p)
         
     | 
| 
      
 1342 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1343 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1344 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1345 
     | 
    
         
            +
             
     | 
| 
      
 1346 
     | 
    
         
            +
                  # Get socket option `curve_publickey`.
         
     | 
| 
      
 1347 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1348 
     | 
    
         
            +
                  # This is the polymorphic version of #curve_publickey.
         
     | 
| 
      
 1349 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1350 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1351 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1352 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1353 
     | 
    
         
            +
                  def self.curve_publickey(self_p)
         
     | 
| 
      
 1354 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1355 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_publickey(self_p)
         
     | 
| 
      
 1356 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1357 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1358 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1359 
     | 
    
         
            +
             
     | 
| 
      
 1360 
     | 
    
         
            +
                  # Set socket option `curve_publickey`.
         
     | 
| 
      
 1361 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1362 
     | 
    
         
            +
                  # @param curve_publickey [String, #to_str, #to_s]
         
     | 
| 
      
 1363 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1364 
     | 
    
         
            +
                  def set_curve_publickey(curve_publickey)
         
     | 
| 
      
 1365 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1366 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1367 
     | 
    
         
            +
                    curve_publickey = String(curve_publickey)
         
     | 
| 
      
 1368 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_publickey(self_p, curve_publickey)
         
     | 
| 
      
 1369 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1370 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1371 
     | 
    
         
            +
             
     | 
| 
      
 1372 
     | 
    
         
            +
                  # Set socket option `curve_publickey`.
         
     | 
| 
      
 1373 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1374 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_publickey.
         
     | 
| 
      
 1375 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1376 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1377 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1378 
     | 
    
         
            +
                  # @param curve_publickey [String, #to_str, #to_s]
         
     | 
| 
      
 1379 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1380 
     | 
    
         
            +
                  def self.set_curve_publickey(self_p, curve_publickey)
         
     | 
| 
      
 1381 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1382 
     | 
    
         
            +
                    curve_publickey = String(curve_publickey)
         
     | 
| 
      
 1383 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_publickey(self_p, curve_publickey)
         
     | 
| 
      
 1384 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1385 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1386 
     | 
    
         
            +
             
     | 
| 
      
 1387 
     | 
    
         
            +
                  # Set socket option `curve_publickey` from 32-octet binary
         
     | 
| 
      
 1388 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1389 
     | 
    
         
            +
                  # @param curve_publickey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1390 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1391 
     | 
    
         
            +
                  def set_curve_publickey_bin(curve_publickey)
         
     | 
| 
      
 1392 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1393 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1394 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_publickey_bin(self_p, curve_publickey)
         
     | 
| 
      
 1395 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1396 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1397 
     | 
    
         
            +
             
     | 
| 
      
 1398 
     | 
    
         
            +
                  # Set socket option `curve_publickey` from 32-octet binary
         
     | 
| 
      
 1399 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1400 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_publickey_bin.
         
     | 
| 
      
 1401 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1402 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1403 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1404 
     | 
    
         
            +
                  # @param curve_publickey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1405 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1406 
     | 
    
         
            +
                  def self.set_curve_publickey_bin(self_p, curve_publickey)
         
     | 
| 
      
 1407 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1408 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_publickey_bin(self_p, curve_publickey)
         
     | 
| 
      
 1409 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1410 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1411 
     | 
    
         
            +
             
     | 
| 
      
 1412 
     | 
    
         
            +
                  # Get socket option `curve_secretkey`.
         
     | 
| 
      
 1413 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1414 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1415 
     | 
    
         
            +
                  def curve_secretkey()
         
     | 
| 
      
 1416 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1417 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1418 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_secretkey(self_p)
         
     | 
| 
      
 1419 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1420 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1421 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1422 
     | 
    
         
            +
             
     | 
| 
      
 1423 
     | 
    
         
            +
                  # Get socket option `curve_secretkey`.
         
     | 
| 
      
 1424 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1425 
     | 
    
         
            +
                  # This is the polymorphic version of #curve_secretkey.
         
     | 
| 
      
 1426 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1427 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1428 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1429 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1430 
     | 
    
         
            +
                  def self.curve_secretkey(self_p)
         
     | 
| 
      
 1431 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1432 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_secretkey(self_p)
         
     | 
| 
      
 1433 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1434 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1435 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1436 
     | 
    
         
            +
             
     | 
| 
      
 1437 
     | 
    
         
            +
                  # Set socket option `curve_secretkey`.
         
     | 
| 
      
 1438 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1439 
     | 
    
         
            +
                  # @param curve_secretkey [String, #to_str, #to_s]
         
     | 
| 
      
 1440 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1441 
     | 
    
         
            +
                  def set_curve_secretkey(curve_secretkey)
         
     | 
| 
      
 1442 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1443 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1444 
     | 
    
         
            +
                    curve_secretkey = String(curve_secretkey)
         
     | 
| 
      
 1445 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_secretkey(self_p, curve_secretkey)
         
     | 
| 
      
 1446 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1447 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1448 
     | 
    
         
            +
             
     | 
| 
      
 1449 
     | 
    
         
            +
                  # Set socket option `curve_secretkey`.
         
     | 
| 
      
 1450 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1451 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_secretkey.
         
     | 
| 
      
 1452 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1453 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1454 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1455 
     | 
    
         
            +
                  # @param curve_secretkey [String, #to_str, #to_s]
         
     | 
| 
      
 1456 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1457 
     | 
    
         
            +
                  def self.set_curve_secretkey(self_p, curve_secretkey)
         
     | 
| 
      
 1458 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1459 
     | 
    
         
            +
                    curve_secretkey = String(curve_secretkey)
         
     | 
| 
      
 1460 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_secretkey(self_p, curve_secretkey)
         
     | 
| 
      
 1461 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1462 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1463 
     | 
    
         
            +
             
     | 
| 
      
 1464 
     | 
    
         
            +
                  # Set socket option `curve_secretkey` from 32-octet binary
         
     | 
| 
      
 1465 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1466 
     | 
    
         
            +
                  # @param curve_secretkey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1467 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1468 
     | 
    
         
            +
                  def set_curve_secretkey_bin(curve_secretkey)
         
     | 
| 
      
 1469 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1470 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1471 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_secretkey_bin(self_p, curve_secretkey)
         
     | 
| 
      
 1472 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1473 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1474 
     | 
    
         
            +
             
     | 
| 
      
 1475 
     | 
    
         
            +
                  # Set socket option `curve_secretkey` from 32-octet binary
         
     | 
| 
      
 1476 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1477 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_secretkey_bin.
         
     | 
| 
      
 1478 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1479 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1480 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1481 
     | 
    
         
            +
                  # @param curve_secretkey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1482 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1483 
     | 
    
         
            +
                  def self.set_curve_secretkey_bin(self_p, curve_secretkey)
         
     | 
| 
      
 1484 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1485 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_secretkey_bin(self_p, curve_secretkey)
         
     | 
| 
      
 1486 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1487 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1488 
     | 
    
         
            +
             
     | 
| 
      
 1489 
     | 
    
         
            +
                  # Get socket option `curve_serverkey`.
         
     | 
| 
      
 1490 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1491 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1492 
     | 
    
         
            +
                  def curve_serverkey()
         
     | 
| 
      
 1493 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1494 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1495 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_serverkey(self_p)
         
     | 
| 
      
 1496 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1497 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1498 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1499 
     | 
    
         
            +
             
     | 
| 
      
 1500 
     | 
    
         
            +
                  # Get socket option `curve_serverkey`.
         
     | 
| 
      
 1501 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1502 
     | 
    
         
            +
                  # This is the polymorphic version of #curve_serverkey.
         
     | 
| 
      
 1503 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1504 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1505 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1506 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1507 
     | 
    
         
            +
                  def self.curve_serverkey(self_p)
         
     | 
| 
      
 1508 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1509 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_curve_serverkey(self_p)
         
     | 
| 
      
 1510 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1511 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1512 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1513 
     | 
    
         
            +
             
     | 
| 
      
 1514 
     | 
    
         
            +
                  # Set socket option `curve_serverkey`.
         
     | 
| 
      
 1515 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1516 
     | 
    
         
            +
                  # @param curve_serverkey [String, #to_str, #to_s]
         
     | 
| 
      
 1517 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1518 
     | 
    
         
            +
                  def set_curve_serverkey(curve_serverkey)
         
     | 
| 
      
 1519 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1520 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1521 
     | 
    
         
            +
                    curve_serverkey = String(curve_serverkey)
         
     | 
| 
      
 1522 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_serverkey(self_p, curve_serverkey)
         
     | 
| 
      
 1523 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1524 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1525 
     | 
    
         
            +
             
     | 
| 
      
 1526 
     | 
    
         
            +
                  # Set socket option `curve_serverkey`.
         
     | 
| 
      
 1527 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1528 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_serverkey.
         
     | 
| 
      
 1529 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1530 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1531 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1532 
     | 
    
         
            +
                  # @param curve_serverkey [String, #to_str, #to_s]
         
     | 
| 
      
 1533 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1534 
     | 
    
         
            +
                  def self.set_curve_serverkey(self_p, curve_serverkey)
         
     | 
| 
      
 1535 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1536 
     | 
    
         
            +
                    curve_serverkey = String(curve_serverkey)
         
     | 
| 
      
 1537 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_serverkey(self_p, curve_serverkey)
         
     | 
| 
      
 1538 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1539 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1540 
     | 
    
         
            +
             
     | 
| 
      
 1541 
     | 
    
         
            +
                  # Set socket option `curve_serverkey` from 32-octet binary
         
     | 
| 
      
 1542 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1543 
     | 
    
         
            +
                  # @param curve_serverkey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1544 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1545 
     | 
    
         
            +
                  def set_curve_serverkey_bin(curve_serverkey)
         
     | 
| 
      
 1546 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1547 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1548 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_serverkey_bin(self_p, curve_serverkey)
         
     | 
| 
      
 1549 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1550 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1551 
     | 
    
         
            +
             
     | 
| 
      
 1552 
     | 
    
         
            +
                  # Set socket option `curve_serverkey` from 32-octet binary
         
     | 
| 
      
 1553 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1554 
     | 
    
         
            +
                  # This is the polymorphic version of #set_curve_serverkey_bin.
         
     | 
| 
      
 1555 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1556 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1557 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1558 
     | 
    
         
            +
                  # @param curve_serverkey [::FFI::Pointer, #to_ptr]
         
     | 
| 
      
 1559 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1560 
     | 
    
         
            +
                  def self.set_curve_serverkey_bin(self_p, curve_serverkey)
         
     | 
| 
      
 1561 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1562 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_curve_serverkey_bin(self_p, curve_serverkey)
         
     | 
| 
      
 1563 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1564 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1565 
     | 
    
         
            +
             
     | 
| 
      
 1566 
     | 
    
         
            +
                  # Get socket option `gssapi_server`.
         
     | 
| 
      
 1567 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1568 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1569 
     | 
    
         
            +
                  def gssapi_server()
         
     | 
| 
      
 1570 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1571 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1572 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_server(self_p)
         
     | 
| 
      
 1573 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1574 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1575 
     | 
    
         
            +
             
     | 
| 
      
 1576 
     | 
    
         
            +
                  # Get socket option `gssapi_server`.
         
     | 
| 
      
 1577 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1578 
     | 
    
         
            +
                  # This is the polymorphic version of #gssapi_server.
         
     | 
| 
      
 1579 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1580 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1581 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1582 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1583 
     | 
    
         
            +
                  def self.gssapi_server(self_p)
         
     | 
| 
      
 1584 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1585 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_server(self_p)
         
     | 
| 
      
 1586 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1587 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1588 
     | 
    
         
            +
             
     | 
| 
      
 1589 
     | 
    
         
            +
                  # Set socket option `gssapi_server`.
         
     | 
| 
      
 1590 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1591 
     | 
    
         
            +
                  # @param gssapi_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1592 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1593 
     | 
    
         
            +
                  def set_gssapi_server(gssapi_server)
         
     | 
| 
      
 1594 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1595 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1596 
     | 
    
         
            +
                    gssapi_server = Integer(gssapi_server)
         
     | 
| 
      
 1597 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_server(self_p, gssapi_server)
         
     | 
| 
      
 1598 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1599 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1600 
     | 
    
         
            +
             
     | 
| 
      
 1601 
     | 
    
         
            +
                  # Set socket option `gssapi_server`.
         
     | 
| 
      
 1602 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1603 
     | 
    
         
            +
                  # This is the polymorphic version of #set_gssapi_server.
         
     | 
| 
      
 1604 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1605 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1606 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1607 
     | 
    
         
            +
                  # @param gssapi_server [Integer, #to_int, #to_i]
         
     | 
| 
      
 1608 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1609 
     | 
    
         
            +
                  def self.set_gssapi_server(self_p, gssapi_server)
         
     | 
| 
      
 1610 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1611 
     | 
    
         
            +
                    gssapi_server = Integer(gssapi_server)
         
     | 
| 
      
 1612 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_server(self_p, gssapi_server)
         
     | 
| 
      
 1613 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1614 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1615 
     | 
    
         
            +
             
     | 
| 
      
 1616 
     | 
    
         
            +
                  # Get socket option `gssapi_plaintext`.
         
     | 
| 
      
 1617 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1618 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1619 
     | 
    
         
            +
                  def gssapi_plaintext()
         
     | 
| 
      
 1620 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1621 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1622 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_plaintext(self_p)
         
     | 
| 
      
 1623 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1624 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1625 
     | 
    
         
            +
             
     | 
| 
      
 1626 
     | 
    
         
            +
                  # Get socket option `gssapi_plaintext`.
         
     | 
| 
      
 1627 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1628 
     | 
    
         
            +
                  # This is the polymorphic version of #gssapi_plaintext.
         
     | 
| 
      
 1629 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1630 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1631 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1632 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1633 
     | 
    
         
            +
                  def self.gssapi_plaintext(self_p)
         
     | 
| 
      
 1634 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1635 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_plaintext(self_p)
         
     | 
| 
      
 1636 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1637 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1638 
     | 
    
         
            +
             
     | 
| 
      
 1639 
     | 
    
         
            +
                  # Set socket option `gssapi_plaintext`.
         
     | 
| 
      
 1640 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1641 
     | 
    
         
            +
                  # @param gssapi_plaintext [Integer, #to_int, #to_i]
         
     | 
| 
      
 1642 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1643 
     | 
    
         
            +
                  def set_gssapi_plaintext(gssapi_plaintext)
         
     | 
| 
      
 1644 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1645 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1646 
     | 
    
         
            +
                    gssapi_plaintext = Integer(gssapi_plaintext)
         
     | 
| 
      
 1647 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_plaintext(self_p, gssapi_plaintext)
         
     | 
| 
      
 1648 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1649 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1650 
     | 
    
         
            +
             
     | 
| 
      
 1651 
     | 
    
         
            +
                  # Set socket option `gssapi_plaintext`.
         
     | 
| 
      
 1652 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1653 
     | 
    
         
            +
                  # This is the polymorphic version of #set_gssapi_plaintext.
         
     | 
| 
      
 1654 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1655 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1656 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1657 
     | 
    
         
            +
                  # @param gssapi_plaintext [Integer, #to_int, #to_i]
         
     | 
| 
      
 1658 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1659 
     | 
    
         
            +
                  def self.set_gssapi_plaintext(self_p, gssapi_plaintext)
         
     | 
| 
      
 1660 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1661 
     | 
    
         
            +
                    gssapi_plaintext = Integer(gssapi_plaintext)
         
     | 
| 
      
 1662 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_plaintext(self_p, gssapi_plaintext)
         
     | 
| 
      
 1663 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1664 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1665 
     | 
    
         
            +
             
     | 
| 
      
 1666 
     | 
    
         
            +
                  # Get socket option `gssapi_principal`.
         
     | 
| 
      
 1667 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1668 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1669 
     | 
    
         
            +
                  def gssapi_principal()
         
     | 
| 
      
 1670 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1671 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1672 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_principal(self_p)
         
     | 
| 
      
 1673 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1674 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1675 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1676 
     | 
    
         
            +
             
     | 
| 
      
 1677 
     | 
    
         
            +
                  # Get socket option `gssapi_principal`.
         
     | 
| 
      
 1678 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1679 
     | 
    
         
            +
                  # This is the polymorphic version of #gssapi_principal.
         
     | 
| 
      
 1680 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1681 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1682 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1683 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1684 
     | 
    
         
            +
                  def self.gssapi_principal(self_p)
         
     | 
| 
      
 1685 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1686 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_principal(self_p)
         
     | 
| 
      
 1687 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1688 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1689 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1690 
     | 
    
         
            +
             
     | 
| 
      
 1691 
     | 
    
         
            +
                  # Set socket option `gssapi_principal`.
         
     | 
| 
      
 1692 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1693 
     | 
    
         
            +
                  # @param gssapi_principal [String, #to_str, #to_s]
         
     | 
| 
      
 1694 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1695 
     | 
    
         
            +
                  def set_gssapi_principal(gssapi_principal)
         
     | 
| 
      
 1696 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1697 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1698 
     | 
    
         
            +
                    gssapi_principal = String(gssapi_principal)
         
     | 
| 
      
 1699 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_principal(self_p, gssapi_principal)
         
     | 
| 
      
 1700 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1701 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1702 
     | 
    
         
            +
             
     | 
| 
      
 1703 
     | 
    
         
            +
                  # Set socket option `gssapi_principal`.
         
     | 
| 
      
 1704 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1705 
     | 
    
         
            +
                  # This is the polymorphic version of #set_gssapi_principal.
         
     | 
| 
      
 1706 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1707 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1708 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1709 
     | 
    
         
            +
                  # @param gssapi_principal [String, #to_str, #to_s]
         
     | 
| 
      
 1710 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1711 
     | 
    
         
            +
                  def self.set_gssapi_principal(self_p, gssapi_principal)
         
     | 
| 
      
 1712 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1713 
     | 
    
         
            +
                    gssapi_principal = String(gssapi_principal)
         
     | 
| 
      
 1714 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_principal(self_p, gssapi_principal)
         
     | 
| 
      
 1715 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1716 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1717 
     | 
    
         
            +
             
     | 
| 
      
 1718 
     | 
    
         
            +
                  # Get socket option `gssapi_service_principal`.
         
     | 
| 
      
 1719 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1720 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1721 
     | 
    
         
            +
                  def gssapi_service_principal()
         
     | 
| 
      
 1722 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1723 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1724 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_service_principal(self_p)
         
     | 
| 
      
 1725 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1726 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1727 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1728 
     | 
    
         
            +
             
     | 
| 
      
 1729 
     | 
    
         
            +
                  # Get socket option `gssapi_service_principal`.
         
     | 
| 
      
 1730 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1731 
     | 
    
         
            +
                  # This is the polymorphic version of #gssapi_service_principal.
         
     | 
| 
      
 1732 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1733 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1734 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1735 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 1736 
     | 
    
         
            +
                  def self.gssapi_service_principal(self_p)
         
     | 
| 
      
 1737 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1738 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_gssapi_service_principal(self_p)
         
     | 
| 
      
 1739 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 1740 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1741 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1742 
     | 
    
         
            +
             
     | 
| 
      
 1743 
     | 
    
         
            +
                  # Set socket option `gssapi_service_principal`.
         
     | 
| 
      
 1744 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1745 
     | 
    
         
            +
                  # @param gssapi_service_principal [String, #to_str, #to_s]
         
     | 
| 
      
 1746 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1747 
     | 
    
         
            +
                  def set_gssapi_service_principal(gssapi_service_principal)
         
     | 
| 
      
 1748 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1749 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1750 
     | 
    
         
            +
                    gssapi_service_principal = String(gssapi_service_principal)
         
     | 
| 
      
 1751 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_service_principal(self_p, gssapi_service_principal)
         
     | 
| 
      
 1752 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1753 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1754 
     | 
    
         
            +
             
     | 
| 
      
 1755 
     | 
    
         
            +
                  # Set socket option `gssapi_service_principal`.
         
     | 
| 
      
 1756 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1757 
     | 
    
         
            +
                  # This is the polymorphic version of #set_gssapi_service_principal.
         
     | 
| 
      
 1758 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1759 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1760 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1761 
     | 
    
         
            +
                  # @param gssapi_service_principal [String, #to_str, #to_s]
         
     | 
| 
      
 1762 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1763 
     | 
    
         
            +
                  def self.set_gssapi_service_principal(self_p, gssapi_service_principal)
         
     | 
| 
      
 1764 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1765 
     | 
    
         
            +
                    gssapi_service_principal = String(gssapi_service_principal)
         
     | 
| 
      
 1766 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_gssapi_service_principal(self_p, gssapi_service_principal)
         
     | 
| 
      
 1767 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1768 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1769 
     | 
    
         
            +
             
     | 
| 
      
 1770 
     | 
    
         
            +
                  # Get socket option `ipv6`.
         
     | 
| 
      
 1771 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1772 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1773 
     | 
    
         
            +
                  def ipv6()
         
     | 
| 
      
 1774 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1775 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1776 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_ipv6(self_p)
         
     | 
| 
      
 1777 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1778 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1779 
     | 
    
         
            +
             
     | 
| 
      
 1780 
     | 
    
         
            +
                  # Get socket option `ipv6`.
         
     | 
| 
      
 1781 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1782 
     | 
    
         
            +
                  # This is the polymorphic version of #ipv6.
         
     | 
| 
      
 1783 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1784 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1785 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1786 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1787 
     | 
    
         
            +
                  def self.ipv6(self_p)
         
     | 
| 
      
 1788 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1789 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_ipv6(self_p)
         
     | 
| 
      
 1790 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1791 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1792 
     | 
    
         
            +
             
     | 
| 
      
 1793 
     | 
    
         
            +
                  # Set socket option `ipv6`.
         
     | 
| 
      
 1794 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1795 
     | 
    
         
            +
                  # @param ipv6 [Integer, #to_int, #to_i]
         
     | 
| 
      
 1796 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1797 
     | 
    
         
            +
                  def set_ipv6(ipv6)
         
     | 
| 
      
 1798 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1799 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1800 
     | 
    
         
            +
                    ipv6 = Integer(ipv6)
         
     | 
| 
      
 1801 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_ipv6(self_p, ipv6)
         
     | 
| 
      
 1802 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1803 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1804 
     | 
    
         
            +
             
     | 
| 
      
 1805 
     | 
    
         
            +
                  # Set socket option `ipv6`.
         
     | 
| 
      
 1806 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1807 
     | 
    
         
            +
                  # This is the polymorphic version of #set_ipv6.
         
     | 
| 
      
 1808 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1809 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1810 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1811 
     | 
    
         
            +
                  # @param ipv6 [Integer, #to_int, #to_i]
         
     | 
| 
      
 1812 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1813 
     | 
    
         
            +
                  def self.set_ipv6(self_p, ipv6)
         
     | 
| 
      
 1814 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1815 
     | 
    
         
            +
                    ipv6 = Integer(ipv6)
         
     | 
| 
      
 1816 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_ipv6(self_p, ipv6)
         
     | 
| 
      
 1817 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1818 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1819 
     | 
    
         
            +
             
     | 
| 
      
 1820 
     | 
    
         
            +
                  # Get socket option `immediate`.
         
     | 
| 
      
 1821 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1822 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1823 
     | 
    
         
            +
                  def immediate()
         
     | 
| 
      
 1824 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1825 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1826 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_immediate(self_p)
         
     | 
| 
      
 1827 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1828 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1829 
     | 
    
         
            +
             
     | 
| 
      
 1830 
     | 
    
         
            +
                  # Get socket option `immediate`.
         
     | 
| 
      
 1831 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1832 
     | 
    
         
            +
                  # This is the polymorphic version of #immediate.
         
     | 
| 
      
 1833 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1834 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1835 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1836 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1837 
     | 
    
         
            +
                  def self.immediate(self_p)
         
     | 
| 
      
 1838 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1839 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_immediate(self_p)
         
     | 
| 
      
 1840 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1841 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1842 
     | 
    
         
            +
             
     | 
| 
      
 1843 
     | 
    
         
            +
                  # Set socket option `immediate`.
         
     | 
| 
      
 1844 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1845 
     | 
    
         
            +
                  # @param immediate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1846 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1847 
     | 
    
         
            +
                  def set_immediate(immediate)
         
     | 
| 
      
 1848 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1849 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1850 
     | 
    
         
            +
                    immediate = Integer(immediate)
         
     | 
| 
      
 1851 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_immediate(self_p, immediate)
         
     | 
| 
      
 1852 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1853 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1854 
     | 
    
         
            +
             
     | 
| 
      
 1855 
     | 
    
         
            +
                  # Set socket option `immediate`.
         
     | 
| 
      
 1856 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1857 
     | 
    
         
            +
                  # This is the polymorphic version of #set_immediate.
         
     | 
| 
      
 1858 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1859 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1860 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1861 
     | 
    
         
            +
                  # @param immediate [Integer, #to_int, #to_i]
         
     | 
| 
      
 1862 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1863 
     | 
    
         
            +
                  def self.set_immediate(self_p, immediate)
         
     | 
| 
      
 1864 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1865 
     | 
    
         
            +
                    immediate = Integer(immediate)
         
     | 
| 
      
 1866 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_immediate(self_p, immediate)
         
     | 
| 
      
 1867 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1868 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1869 
     | 
    
         
            +
             
     | 
| 
      
 1870 
     | 
    
         
            +
                  # Set socket option `router_raw`.
         
     | 
| 
      
 1871 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1872 
     | 
    
         
            +
                  # @param router_raw [Integer, #to_int, #to_i]
         
     | 
| 
      
 1873 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1874 
     | 
    
         
            +
                  def set_router_raw(router_raw)
         
     | 
| 
      
 1875 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1876 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1877 
     | 
    
         
            +
                    router_raw = Integer(router_raw)
         
     | 
| 
      
 1878 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_raw(self_p, router_raw)
         
     | 
| 
      
 1879 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1880 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1881 
     | 
    
         
            +
             
     | 
| 
      
 1882 
     | 
    
         
            +
                  # Set socket option `router_raw`.
         
     | 
| 
      
 1883 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1884 
     | 
    
         
            +
                  # This is the polymorphic version of #set_router_raw.
         
     | 
| 
      
 1885 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1886 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1887 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1888 
     | 
    
         
            +
                  # @param router_raw [Integer, #to_int, #to_i]
         
     | 
| 
      
 1889 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1890 
     | 
    
         
            +
                  def self.set_router_raw(self_p, router_raw)
         
     | 
| 
      
 1891 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1892 
     | 
    
         
            +
                    router_raw = Integer(router_raw)
         
     | 
| 
      
 1893 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_router_raw(self_p, router_raw)
         
     | 
| 
      
 1894 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1895 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1896 
     | 
    
         
            +
             
     | 
| 
      
 1897 
     | 
    
         
            +
                  # Get socket option `ipv4only`.
         
     | 
| 
      
 1898 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1899 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1900 
     | 
    
         
            +
                  def ipv4only()
         
     | 
| 
      
 1901 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1902 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1903 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_ipv4only(self_p)
         
     | 
| 
      
 1904 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1905 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1906 
     | 
    
         
            +
             
     | 
| 
      
 1907 
     | 
    
         
            +
                  # Get socket option `ipv4only`.
         
     | 
| 
      
 1908 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1909 
     | 
    
         
            +
                  # This is the polymorphic version of #ipv4only.
         
     | 
| 
      
 1910 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1911 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1912 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1913 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1914 
     | 
    
         
            +
                  def self.ipv4only(self_p)
         
     | 
| 
      
 1915 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1916 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_ipv4only(self_p)
         
     | 
| 
      
 1917 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1918 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1919 
     | 
    
         
            +
             
     | 
| 
      
 1920 
     | 
    
         
            +
                  # Set socket option `ipv4only`.
         
     | 
| 
      
 1921 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1922 
     | 
    
         
            +
                  # @param ipv4only [Integer, #to_int, #to_i]
         
     | 
| 
      
 1923 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1924 
     | 
    
         
            +
                  def set_ipv4only(ipv4only)
         
     | 
| 
      
 1925 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1926 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1927 
     | 
    
         
            +
                    ipv4only = Integer(ipv4only)
         
     | 
| 
      
 1928 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_ipv4only(self_p, ipv4only)
         
     | 
| 
      
 1929 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1930 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1931 
     | 
    
         
            +
             
     | 
| 
      
 1932 
     | 
    
         
            +
                  # Set socket option `ipv4only`.
         
     | 
| 
      
 1933 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1934 
     | 
    
         
            +
                  # This is the polymorphic version of #set_ipv4only.
         
     | 
| 
      
 1935 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1936 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1937 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1938 
     | 
    
         
            +
                  # @param ipv4only [Integer, #to_int, #to_i]
         
     | 
| 
      
 1939 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1940 
     | 
    
         
            +
                  def self.set_ipv4only(self_p, ipv4only)
         
     | 
| 
      
 1941 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1942 
     | 
    
         
            +
                    ipv4only = Integer(ipv4only)
         
     | 
| 
      
 1943 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_ipv4only(self_p, ipv4only)
         
     | 
| 
      
 1944 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1945 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1946 
     | 
    
         
            +
             
     | 
| 
      
 1947 
     | 
    
         
            +
                  # Set socket option `delay_attach_on_connect`.
         
     | 
| 
      
 1948 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1949 
     | 
    
         
            +
                  # @param delay_attach_on_connect [Integer, #to_int, #to_i]
         
     | 
| 
      
 1950 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1951 
     | 
    
         
            +
                  def set_delay_attach_on_connect(delay_attach_on_connect)
         
     | 
| 
      
 1952 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1953 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1954 
     | 
    
         
            +
                    delay_attach_on_connect = Integer(delay_attach_on_connect)
         
     | 
| 
      
 1955 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_delay_attach_on_connect(self_p, delay_attach_on_connect)
         
     | 
| 
      
 1956 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1957 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1958 
     | 
    
         
            +
             
     | 
| 
      
 1959 
     | 
    
         
            +
                  # Set socket option `delay_attach_on_connect`.
         
     | 
| 
      
 1960 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1961 
     | 
    
         
            +
                  # This is the polymorphic version of #set_delay_attach_on_connect.
         
     | 
| 
      
 1962 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1963 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1964 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1965 
     | 
    
         
            +
                  # @param delay_attach_on_connect [Integer, #to_int, #to_i]
         
     | 
| 
      
 1966 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 1967 
     | 
    
         
            +
                  def self.set_delay_attach_on_connect(self_p, delay_attach_on_connect)
         
     | 
| 
      
 1968 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1969 
     | 
    
         
            +
                    delay_attach_on_connect = Integer(delay_attach_on_connect)
         
     | 
| 
      
 1970 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_delay_attach_on_connect(self_p, delay_attach_on_connect)
         
     | 
| 
      
 1971 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1972 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1973 
     | 
    
         
            +
             
     | 
| 
      
 1974 
     | 
    
         
            +
                  # Get socket option `type`.
         
     | 
| 
      
 1975 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1976 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1977 
     | 
    
         
            +
                  def type()
         
     | 
| 
      
 1978 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 1979 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 1980 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_type(self_p)
         
     | 
| 
      
 1981 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1982 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1983 
     | 
    
         
            +
             
     | 
| 
      
 1984 
     | 
    
         
            +
                  # Get socket option `type`.
         
     | 
| 
      
 1985 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1986 
     | 
    
         
            +
                  # This is the polymorphic version of #type.
         
     | 
| 
      
 1987 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1988 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 1989 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 1990 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 1991 
     | 
    
         
            +
                  def self.type(self_p)
         
     | 
| 
      
 1992 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 1993 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_type(self_p)
         
     | 
| 
      
 1994 
     | 
    
         
            +
                    result
         
     | 
| 
      
 1995 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1996 
     | 
    
         
            +
             
     | 
| 
      
 1997 
     | 
    
         
            +
                  # Get socket option `sndhwm`.
         
     | 
| 
      
 1998 
     | 
    
         
            +
                  #
         
     | 
| 
      
 1999 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2000 
     | 
    
         
            +
                  def sndhwm()
         
     | 
| 
      
 2001 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2002 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2003 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndhwm(self_p)
         
     | 
| 
      
 2004 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2005 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2006 
     | 
    
         
            +
             
     | 
| 
      
 2007 
     | 
    
         
            +
                  # Get socket option `sndhwm`.
         
     | 
| 
      
 2008 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2009 
     | 
    
         
            +
                  # This is the polymorphic version of #sndhwm.
         
     | 
| 
      
 2010 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2011 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2012 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2013 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2014 
     | 
    
         
            +
                  def self.sndhwm(self_p)
         
     | 
| 
      
 2015 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2016 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndhwm(self_p)
         
     | 
| 
      
 2017 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2018 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2019 
     | 
    
         
            +
             
     | 
| 
      
 2020 
     | 
    
         
            +
                  # Set socket option `sndhwm`.
         
     | 
| 
      
 2021 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2022 
     | 
    
         
            +
                  # @param sndhwm [Integer, #to_int, #to_i]
         
     | 
| 
      
 2023 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2024 
     | 
    
         
            +
                  def set_sndhwm(sndhwm)
         
     | 
| 
      
 2025 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2026 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2027 
     | 
    
         
            +
                    sndhwm = Integer(sndhwm)
         
     | 
| 
      
 2028 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndhwm(self_p, sndhwm)
         
     | 
| 
      
 2029 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2030 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2031 
     | 
    
         
            +
             
     | 
| 
      
 2032 
     | 
    
         
            +
                  # Set socket option `sndhwm`.
         
     | 
| 
      
 2033 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2034 
     | 
    
         
            +
                  # This is the polymorphic version of #set_sndhwm.
         
     | 
| 
      
 2035 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2036 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2037 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2038 
     | 
    
         
            +
                  # @param sndhwm [Integer, #to_int, #to_i]
         
     | 
| 
      
 2039 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2040 
     | 
    
         
            +
                  def self.set_sndhwm(self_p, sndhwm)
         
     | 
| 
      
 2041 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2042 
     | 
    
         
            +
                    sndhwm = Integer(sndhwm)
         
     | 
| 
      
 2043 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndhwm(self_p, sndhwm)
         
     | 
| 
      
 2044 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2045 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2046 
     | 
    
         
            +
             
     | 
| 
      
 2047 
     | 
    
         
            +
                  # Get socket option `rcvhwm`.
         
     | 
| 
      
 2048 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2049 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2050 
     | 
    
         
            +
                  def rcvhwm()
         
     | 
| 
      
 2051 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2052 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2053 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvhwm(self_p)
         
     | 
| 
      
 2054 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2055 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2056 
     | 
    
         
            +
             
     | 
| 
      
 2057 
     | 
    
         
            +
                  # Get socket option `rcvhwm`.
         
     | 
| 
      
 2058 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2059 
     | 
    
         
            +
                  # This is the polymorphic version of #rcvhwm.
         
     | 
| 
      
 2060 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2061 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2062 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2063 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2064 
     | 
    
         
            +
                  def self.rcvhwm(self_p)
         
     | 
| 
      
 2065 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2066 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvhwm(self_p)
         
     | 
| 
      
 2067 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2068 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2069 
     | 
    
         
            +
             
     | 
| 
      
 2070 
     | 
    
         
            +
                  # Set socket option `rcvhwm`.
         
     | 
| 
      
 2071 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2072 
     | 
    
         
            +
                  # @param rcvhwm [Integer, #to_int, #to_i]
         
     | 
| 
      
 2073 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2074 
     | 
    
         
            +
                  def set_rcvhwm(rcvhwm)
         
     | 
| 
      
 2075 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2076 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2077 
     | 
    
         
            +
                    rcvhwm = Integer(rcvhwm)
         
     | 
| 
      
 2078 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvhwm(self_p, rcvhwm)
         
     | 
| 
      
 2079 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2080 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2081 
     | 
    
         
            +
             
     | 
| 
      
 2082 
     | 
    
         
            +
                  # Set socket option `rcvhwm`.
         
     | 
| 
      
 2083 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2084 
     | 
    
         
            +
                  # This is the polymorphic version of #set_rcvhwm.
         
     | 
| 
      
 2085 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2086 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2087 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2088 
     | 
    
         
            +
                  # @param rcvhwm [Integer, #to_int, #to_i]
         
     | 
| 
      
 2089 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2090 
     | 
    
         
            +
                  def self.set_rcvhwm(self_p, rcvhwm)
         
     | 
| 
      
 2091 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2092 
     | 
    
         
            +
                    rcvhwm = Integer(rcvhwm)
         
     | 
| 
      
 2093 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvhwm(self_p, rcvhwm)
         
     | 
| 
      
 2094 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2095 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2096 
     | 
    
         
            +
             
     | 
| 
      
 2097 
     | 
    
         
            +
                  # Get socket option `affinity`.
         
     | 
| 
      
 2098 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2099 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2100 
     | 
    
         
            +
                  def affinity()
         
     | 
| 
      
 2101 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2102 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2103 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_affinity(self_p)
         
     | 
| 
      
 2104 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2105 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2106 
     | 
    
         
            +
             
     | 
| 
      
 2107 
     | 
    
         
            +
                  # Get socket option `affinity`.
         
     | 
| 
      
 2108 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2109 
     | 
    
         
            +
                  # This is the polymorphic version of #affinity.
         
     | 
| 
      
 2110 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2111 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2112 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2113 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2114 
     | 
    
         
            +
                  def self.affinity(self_p)
         
     | 
| 
      
 2115 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2116 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_affinity(self_p)
         
     | 
| 
      
 2117 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2118 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2119 
     | 
    
         
            +
             
     | 
| 
      
 2120 
     | 
    
         
            +
                  # Set socket option `affinity`.
         
     | 
| 
      
 2121 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2122 
     | 
    
         
            +
                  # @param affinity [Integer, #to_int, #to_i]
         
     | 
| 
      
 2123 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2124 
     | 
    
         
            +
                  def set_affinity(affinity)
         
     | 
| 
      
 2125 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2126 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2127 
     | 
    
         
            +
                    affinity = Integer(affinity)
         
     | 
| 
      
 2128 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_affinity(self_p, affinity)
         
     | 
| 
      
 2129 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2130 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2131 
     | 
    
         
            +
             
     | 
| 
      
 2132 
     | 
    
         
            +
                  # Set socket option `affinity`.
         
     | 
| 
      
 2133 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2134 
     | 
    
         
            +
                  # This is the polymorphic version of #set_affinity.
         
     | 
| 
      
 2135 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2136 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2137 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2138 
     | 
    
         
            +
                  # @param affinity [Integer, #to_int, #to_i]
         
     | 
| 
      
 2139 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2140 
     | 
    
         
            +
                  def self.set_affinity(self_p, affinity)
         
     | 
| 
      
 2141 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2142 
     | 
    
         
            +
                    affinity = Integer(affinity)
         
     | 
| 
      
 2143 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_affinity(self_p, affinity)
         
     | 
| 
      
 2144 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2145 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2146 
     | 
    
         
            +
             
     | 
| 
      
 2147 
     | 
    
         
            +
                  # Set socket option `subscribe`.
         
     | 
| 
      
 2148 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2149 
     | 
    
         
            +
                  # @param subscribe [String, #to_str, #to_s]
         
     | 
| 
      
 2150 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2151 
     | 
    
         
            +
                  def set_subscribe(subscribe)
         
     | 
| 
      
 2152 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2153 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2154 
     | 
    
         
            +
                    subscribe = String(subscribe)
         
     | 
| 
      
 2155 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_subscribe(self_p, subscribe)
         
     | 
| 
      
 2156 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2157 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2158 
     | 
    
         
            +
             
     | 
| 
      
 2159 
     | 
    
         
            +
                  # Set socket option `subscribe`.
         
     | 
| 
      
 2160 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2161 
     | 
    
         
            +
                  # This is the polymorphic version of #set_subscribe.
         
     | 
| 
      
 2162 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2163 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2164 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2165 
     | 
    
         
            +
                  # @param subscribe [String, #to_str, #to_s]
         
     | 
| 
      
 2166 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2167 
     | 
    
         
            +
                  def self.set_subscribe(self_p, subscribe)
         
     | 
| 
      
 2168 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2169 
     | 
    
         
            +
                    subscribe = String(subscribe)
         
     | 
| 
      
 2170 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_subscribe(self_p, subscribe)
         
     | 
| 
      
 2171 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2172 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2173 
     | 
    
         
            +
             
     | 
| 
      
 2174 
     | 
    
         
            +
                  # Set socket option `unsubscribe`.
         
     | 
| 
      
 2175 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2176 
     | 
    
         
            +
                  # @param unsubscribe [String, #to_str, #to_s]
         
     | 
| 
      
 2177 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2178 
     | 
    
         
            +
                  def set_unsubscribe(unsubscribe)
         
     | 
| 
      
 2179 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2180 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2181 
     | 
    
         
            +
                    unsubscribe = String(unsubscribe)
         
     | 
| 
      
 2182 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_unsubscribe(self_p, unsubscribe)
         
     | 
| 
      
 2183 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2184 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2185 
     | 
    
         
            +
             
     | 
| 
      
 2186 
     | 
    
         
            +
                  # Set socket option `unsubscribe`.
         
     | 
| 
      
 2187 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2188 
     | 
    
         
            +
                  # This is the polymorphic version of #set_unsubscribe.
         
     | 
| 
      
 2189 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2190 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2191 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2192 
     | 
    
         
            +
                  # @param unsubscribe [String, #to_str, #to_s]
         
     | 
| 
      
 2193 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2194 
     | 
    
         
            +
                  def self.set_unsubscribe(self_p, unsubscribe)
         
     | 
| 
      
 2195 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2196 
     | 
    
         
            +
                    unsubscribe = String(unsubscribe)
         
     | 
| 
      
 2197 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_unsubscribe(self_p, unsubscribe)
         
     | 
| 
      
 2198 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2199 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2200 
     | 
    
         
            +
             
     | 
| 
      
 2201 
     | 
    
         
            +
                  # Get socket option `identity`.
         
     | 
| 
      
 2202 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2203 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 2204 
     | 
    
         
            +
                  def identity()
         
     | 
| 
      
 2205 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2206 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2207 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_identity(self_p)
         
     | 
| 
      
 2208 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 2209 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2210 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2211 
     | 
    
         
            +
             
     | 
| 
      
 2212 
     | 
    
         
            +
                  # Get socket option `identity`.
         
     | 
| 
      
 2213 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2214 
     | 
    
         
            +
                  # This is the polymorphic version of #identity.
         
     | 
| 
      
 2215 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2216 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2217 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2218 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 2219 
     | 
    
         
            +
                  def self.identity(self_p)
         
     | 
| 
      
 2220 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2221 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_identity(self_p)
         
     | 
| 
      
 2222 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 2223 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2224 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2225 
     | 
    
         
            +
             
     | 
| 
      
 2226 
     | 
    
         
            +
                  # Set socket option `identity`.
         
     | 
| 
      
 2227 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2228 
     | 
    
         
            +
                  # @param identity [String, #to_str, #to_s]
         
     | 
| 
      
 2229 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2230 
     | 
    
         
            +
                  def set_identity(identity)
         
     | 
| 
      
 2231 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2232 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2233 
     | 
    
         
            +
                    identity = String(identity)
         
     | 
| 
      
 2234 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_identity(self_p, identity)
         
     | 
| 
      
 2235 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2236 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2237 
     | 
    
         
            +
             
     | 
| 
      
 2238 
     | 
    
         
            +
                  # Set socket option `identity`.
         
     | 
| 
      
 2239 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2240 
     | 
    
         
            +
                  # This is the polymorphic version of #set_identity.
         
     | 
| 
      
 2241 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2242 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2243 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2244 
     | 
    
         
            +
                  # @param identity [String, #to_str, #to_s]
         
     | 
| 
      
 2245 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2246 
     | 
    
         
            +
                  def self.set_identity(self_p, identity)
         
     | 
| 
      
 2247 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2248 
     | 
    
         
            +
                    identity = String(identity)
         
     | 
| 
      
 2249 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_identity(self_p, identity)
         
     | 
| 
      
 2250 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2251 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2252 
     | 
    
         
            +
             
     | 
| 
      
 2253 
     | 
    
         
            +
                  # Get socket option `rate`.
         
     | 
| 
      
 2254 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2255 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2256 
     | 
    
         
            +
                  def rate()
         
     | 
| 
      
 2257 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2258 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2259 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rate(self_p)
         
     | 
| 
      
 2260 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2261 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2262 
     | 
    
         
            +
             
     | 
| 
      
 2263 
     | 
    
         
            +
                  # Get socket option `rate`.
         
     | 
| 
      
 2264 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2265 
     | 
    
         
            +
                  # This is the polymorphic version of #rate.
         
     | 
| 
      
 2266 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2267 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2268 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2269 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2270 
     | 
    
         
            +
                  def self.rate(self_p)
         
     | 
| 
      
 2271 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2272 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rate(self_p)
         
     | 
| 
      
 2273 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2274 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2275 
     | 
    
         
            +
             
     | 
| 
      
 2276 
     | 
    
         
            +
                  # Set socket option `rate`.
         
     | 
| 
      
 2277 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2278 
     | 
    
         
            +
                  # @param rate [Integer, #to_int, #to_i]
         
     | 
| 
      
 2279 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2280 
     | 
    
         
            +
                  def set_rate(rate)
         
     | 
| 
      
 2281 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2282 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2283 
     | 
    
         
            +
                    rate = Integer(rate)
         
     | 
| 
      
 2284 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rate(self_p, rate)
         
     | 
| 
      
 2285 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2286 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2287 
     | 
    
         
            +
             
     | 
| 
      
 2288 
     | 
    
         
            +
                  # Set socket option `rate`.
         
     | 
| 
      
 2289 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2290 
     | 
    
         
            +
                  # This is the polymorphic version of #set_rate.
         
     | 
| 
      
 2291 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2292 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2293 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2294 
     | 
    
         
            +
                  # @param rate [Integer, #to_int, #to_i]
         
     | 
| 
      
 2295 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2296 
     | 
    
         
            +
                  def self.set_rate(self_p, rate)
         
     | 
| 
      
 2297 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2298 
     | 
    
         
            +
                    rate = Integer(rate)
         
     | 
| 
      
 2299 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rate(self_p, rate)
         
     | 
| 
      
 2300 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2301 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2302 
     | 
    
         
            +
             
     | 
| 
      
 2303 
     | 
    
         
            +
                  # Get socket option `recovery_ivl`.
         
     | 
| 
      
 2304 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2305 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2306 
     | 
    
         
            +
                  def recovery_ivl()
         
     | 
| 
      
 2307 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2308 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2309 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_recovery_ivl(self_p)
         
     | 
| 
      
 2310 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2311 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2312 
     | 
    
         
            +
             
     | 
| 
      
 2313 
     | 
    
         
            +
                  # Get socket option `recovery_ivl`.
         
     | 
| 
      
 2314 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2315 
     | 
    
         
            +
                  # This is the polymorphic version of #recovery_ivl.
         
     | 
| 
      
 2316 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2317 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2318 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2319 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2320 
     | 
    
         
            +
                  def self.recovery_ivl(self_p)
         
     | 
| 
      
 2321 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2322 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_recovery_ivl(self_p)
         
     | 
| 
      
 2323 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2324 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2325 
     | 
    
         
            +
             
     | 
| 
      
 2326 
     | 
    
         
            +
                  # Set socket option `recovery_ivl`.
         
     | 
| 
      
 2327 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2328 
     | 
    
         
            +
                  # @param recovery_ivl [Integer, #to_int, #to_i]
         
     | 
| 
      
 2329 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2330 
     | 
    
         
            +
                  def set_recovery_ivl(recovery_ivl)
         
     | 
| 
      
 2331 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2332 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2333 
     | 
    
         
            +
                    recovery_ivl = Integer(recovery_ivl)
         
     | 
| 
      
 2334 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_recovery_ivl(self_p, recovery_ivl)
         
     | 
| 
      
 2335 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2336 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2337 
     | 
    
         
            +
             
     | 
| 
      
 2338 
     | 
    
         
            +
                  # Set socket option `recovery_ivl`.
         
     | 
| 
      
 2339 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2340 
     | 
    
         
            +
                  # This is the polymorphic version of #set_recovery_ivl.
         
     | 
| 
      
 2341 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2342 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2343 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2344 
     | 
    
         
            +
                  # @param recovery_ivl [Integer, #to_int, #to_i]
         
     | 
| 
      
 2345 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2346 
     | 
    
         
            +
                  def self.set_recovery_ivl(self_p, recovery_ivl)
         
     | 
| 
      
 2347 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2348 
     | 
    
         
            +
                    recovery_ivl = Integer(recovery_ivl)
         
     | 
| 
      
 2349 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_recovery_ivl(self_p, recovery_ivl)
         
     | 
| 
      
 2350 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2351 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2352 
     | 
    
         
            +
             
     | 
| 
      
 2353 
     | 
    
         
            +
                  # Get socket option `sndbuf`.
         
     | 
| 
      
 2354 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2355 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2356 
     | 
    
         
            +
                  def sndbuf()
         
     | 
| 
      
 2357 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2358 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2359 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndbuf(self_p)
         
     | 
| 
      
 2360 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2361 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2362 
     | 
    
         
            +
             
     | 
| 
      
 2363 
     | 
    
         
            +
                  # Get socket option `sndbuf`.
         
     | 
| 
      
 2364 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2365 
     | 
    
         
            +
                  # This is the polymorphic version of #sndbuf.
         
     | 
| 
      
 2366 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2367 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2368 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2369 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2370 
     | 
    
         
            +
                  def self.sndbuf(self_p)
         
     | 
| 
      
 2371 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2372 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndbuf(self_p)
         
     | 
| 
      
 2373 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2374 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2375 
     | 
    
         
            +
             
     | 
| 
      
 2376 
     | 
    
         
            +
                  # Set socket option `sndbuf`.
         
     | 
| 
      
 2377 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2378 
     | 
    
         
            +
                  # @param sndbuf [Integer, #to_int, #to_i]
         
     | 
| 
      
 2379 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2380 
     | 
    
         
            +
                  def set_sndbuf(sndbuf)
         
     | 
| 
      
 2381 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2382 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2383 
     | 
    
         
            +
                    sndbuf = Integer(sndbuf)
         
     | 
| 
      
 2384 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndbuf(self_p, sndbuf)
         
     | 
| 
      
 2385 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2386 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2387 
     | 
    
         
            +
             
     | 
| 
      
 2388 
     | 
    
         
            +
                  # Set socket option `sndbuf`.
         
     | 
| 
      
 2389 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2390 
     | 
    
         
            +
                  # This is the polymorphic version of #set_sndbuf.
         
     | 
| 
      
 2391 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2392 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2393 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2394 
     | 
    
         
            +
                  # @param sndbuf [Integer, #to_int, #to_i]
         
     | 
| 
      
 2395 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2396 
     | 
    
         
            +
                  def self.set_sndbuf(self_p, sndbuf)
         
     | 
| 
      
 2397 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2398 
     | 
    
         
            +
                    sndbuf = Integer(sndbuf)
         
     | 
| 
      
 2399 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndbuf(self_p, sndbuf)
         
     | 
| 
      
 2400 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2401 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2402 
     | 
    
         
            +
             
     | 
| 
      
 2403 
     | 
    
         
            +
                  # Get socket option `rcvbuf`.
         
     | 
| 
      
 2404 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2405 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2406 
     | 
    
         
            +
                  def rcvbuf()
         
     | 
| 
      
 2407 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2408 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2409 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvbuf(self_p)
         
     | 
| 
      
 2410 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2411 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2412 
     | 
    
         
            +
             
     | 
| 
      
 2413 
     | 
    
         
            +
                  # Get socket option `rcvbuf`.
         
     | 
| 
      
 2414 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2415 
     | 
    
         
            +
                  # This is the polymorphic version of #rcvbuf.
         
     | 
| 
      
 2416 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2417 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2418 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2419 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2420 
     | 
    
         
            +
                  def self.rcvbuf(self_p)
         
     | 
| 
      
 2421 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2422 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvbuf(self_p)
         
     | 
| 
      
 2423 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2424 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2425 
     | 
    
         
            +
             
     | 
| 
      
 2426 
     | 
    
         
            +
                  # Set socket option `rcvbuf`.
         
     | 
| 
      
 2427 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2428 
     | 
    
         
            +
                  # @param rcvbuf [Integer, #to_int, #to_i]
         
     | 
| 
      
 2429 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2430 
     | 
    
         
            +
                  def set_rcvbuf(rcvbuf)
         
     | 
| 
      
 2431 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2432 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2433 
     | 
    
         
            +
                    rcvbuf = Integer(rcvbuf)
         
     | 
| 
      
 2434 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvbuf(self_p, rcvbuf)
         
     | 
| 
      
 2435 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2436 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2437 
     | 
    
         
            +
             
     | 
| 
      
 2438 
     | 
    
         
            +
                  # Set socket option `rcvbuf`.
         
     | 
| 
      
 2439 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2440 
     | 
    
         
            +
                  # This is the polymorphic version of #set_rcvbuf.
         
     | 
| 
      
 2441 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2442 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2443 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2444 
     | 
    
         
            +
                  # @param rcvbuf [Integer, #to_int, #to_i]
         
     | 
| 
      
 2445 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2446 
     | 
    
         
            +
                  def self.set_rcvbuf(self_p, rcvbuf)
         
     | 
| 
      
 2447 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2448 
     | 
    
         
            +
                    rcvbuf = Integer(rcvbuf)
         
     | 
| 
      
 2449 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvbuf(self_p, rcvbuf)
         
     | 
| 
      
 2450 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2451 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2452 
     | 
    
         
            +
             
     | 
| 
      
 2453 
     | 
    
         
            +
                  # Get socket option `linger`.
         
     | 
| 
      
 2454 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2455 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2456 
     | 
    
         
            +
                  def linger()
         
     | 
| 
      
 2457 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2458 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2459 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_linger(self_p)
         
     | 
| 
      
 2460 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2461 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2462 
     | 
    
         
            +
             
     | 
| 
      
 2463 
     | 
    
         
            +
                  # Get socket option `linger`.
         
     | 
| 
      
 2464 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2465 
     | 
    
         
            +
                  # This is the polymorphic version of #linger.
         
     | 
| 
      
 2466 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2467 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2468 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2469 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2470 
     | 
    
         
            +
                  def self.linger(self_p)
         
     | 
| 
      
 2471 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2472 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_linger(self_p)
         
     | 
| 
      
 2473 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2474 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2475 
     | 
    
         
            +
             
     | 
| 
      
 2476 
     | 
    
         
            +
                  # Set socket option `linger`.
         
     | 
| 
      
 2477 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2478 
     | 
    
         
            +
                  # @param linger [Integer, #to_int, #to_i]
         
     | 
| 
      
 2479 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2480 
     | 
    
         
            +
                  def set_linger(linger)
         
     | 
| 
      
 2481 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2482 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2483 
     | 
    
         
            +
                    linger = Integer(linger)
         
     | 
| 
      
 2484 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
         
     | 
| 
      
 2485 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2486 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2487 
     | 
    
         
            +
             
     | 
| 
      
 2488 
     | 
    
         
            +
                  # Set socket option `linger`.
         
     | 
| 
      
 2489 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2490 
     | 
    
         
            +
                  # This is the polymorphic version of #set_linger.
         
     | 
| 
      
 2491 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2492 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2493 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2494 
     | 
    
         
            +
                  # @param linger [Integer, #to_int, #to_i]
         
     | 
| 
      
 2495 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2496 
     | 
    
         
            +
                  def self.set_linger(self_p, linger)
         
     | 
| 
      
 2497 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2498 
     | 
    
         
            +
                    linger = Integer(linger)
         
     | 
| 
      
 2499 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_linger(self_p, linger)
         
     | 
| 
      
 2500 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2501 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2502 
     | 
    
         
            +
             
     | 
| 
      
 2503 
     | 
    
         
            +
                  # Get socket option `reconnect_ivl`.
         
     | 
| 
      
 2504 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2505 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2506 
     | 
    
         
            +
                  def reconnect_ivl()
         
     | 
| 
      
 2507 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2508 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2509 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_reconnect_ivl(self_p)
         
     | 
| 
      
 2510 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2511 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2512 
     | 
    
         
            +
             
     | 
| 
      
 2513 
     | 
    
         
            +
                  # Get socket option `reconnect_ivl`.
         
     | 
| 
      
 2514 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2515 
     | 
    
         
            +
                  # This is the polymorphic version of #reconnect_ivl.
         
     | 
| 
      
 2516 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2517 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2518 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2519 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2520 
     | 
    
         
            +
                  def self.reconnect_ivl(self_p)
         
     | 
| 
      
 2521 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2522 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_reconnect_ivl(self_p)
         
     | 
| 
      
 2523 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2524 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2525 
     | 
    
         
            +
             
     | 
| 
      
 2526 
     | 
    
         
            +
                  # Set socket option `reconnect_ivl`.
         
     | 
| 
      
 2527 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2528 
     | 
    
         
            +
                  # @param reconnect_ivl [Integer, #to_int, #to_i]
         
     | 
| 
      
 2529 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2530 
     | 
    
         
            +
                  def set_reconnect_ivl(reconnect_ivl)
         
     | 
| 
      
 2531 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2532 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2533 
     | 
    
         
            +
                    reconnect_ivl = Integer(reconnect_ivl)
         
     | 
| 
      
 2534 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_reconnect_ivl(self_p, reconnect_ivl)
         
     | 
| 
      
 2535 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2536 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2537 
     | 
    
         
            +
             
     | 
| 
      
 2538 
     | 
    
         
            +
                  # Set socket option `reconnect_ivl`.
         
     | 
| 
      
 2539 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2540 
     | 
    
         
            +
                  # This is the polymorphic version of #set_reconnect_ivl.
         
     | 
| 
      
 2541 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2542 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2543 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2544 
     | 
    
         
            +
                  # @param reconnect_ivl [Integer, #to_int, #to_i]
         
     | 
| 
      
 2545 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2546 
     | 
    
         
            +
                  def self.set_reconnect_ivl(self_p, reconnect_ivl)
         
     | 
| 
      
 2547 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2548 
     | 
    
         
            +
                    reconnect_ivl = Integer(reconnect_ivl)
         
     | 
| 
      
 2549 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_reconnect_ivl(self_p, reconnect_ivl)
         
     | 
| 
      
 2550 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2551 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2552 
     | 
    
         
            +
             
     | 
| 
      
 2553 
     | 
    
         
            +
                  # Get socket option `reconnect_ivl_max`.
         
     | 
| 
      
 2554 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2555 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2556 
     | 
    
         
            +
                  def reconnect_ivl_max()
         
     | 
| 
      
 2557 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2558 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2559 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_reconnect_ivl_max(self_p)
         
     | 
| 
      
 2560 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2561 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2562 
     | 
    
         
            +
             
     | 
| 
      
 2563 
     | 
    
         
            +
                  # Get socket option `reconnect_ivl_max`.
         
     | 
| 
      
 2564 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2565 
     | 
    
         
            +
                  # This is the polymorphic version of #reconnect_ivl_max.
         
     | 
| 
      
 2566 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2567 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2568 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2569 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2570 
     | 
    
         
            +
                  def self.reconnect_ivl_max(self_p)
         
     | 
| 
      
 2571 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2572 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_reconnect_ivl_max(self_p)
         
     | 
| 
      
 2573 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2574 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2575 
     | 
    
         
            +
             
     | 
| 
      
 2576 
     | 
    
         
            +
                  # Set socket option `reconnect_ivl_max`.
         
     | 
| 
      
 2577 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2578 
     | 
    
         
            +
                  # @param reconnect_ivl_max [Integer, #to_int, #to_i]
         
     | 
| 
      
 2579 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2580 
     | 
    
         
            +
                  def set_reconnect_ivl_max(reconnect_ivl_max)
         
     | 
| 
      
 2581 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2582 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2583 
     | 
    
         
            +
                    reconnect_ivl_max = Integer(reconnect_ivl_max)
         
     | 
| 
      
 2584 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_reconnect_ivl_max(self_p, reconnect_ivl_max)
         
     | 
| 
      
 2585 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2586 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2587 
     | 
    
         
            +
             
     | 
| 
      
 2588 
     | 
    
         
            +
                  # Set socket option `reconnect_ivl_max`.
         
     | 
| 
      
 2589 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2590 
     | 
    
         
            +
                  # This is the polymorphic version of #set_reconnect_ivl_max.
         
     | 
| 
      
 2591 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2592 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2593 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2594 
     | 
    
         
            +
                  # @param reconnect_ivl_max [Integer, #to_int, #to_i]
         
     | 
| 
      
 2595 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2596 
     | 
    
         
            +
                  def self.set_reconnect_ivl_max(self_p, reconnect_ivl_max)
         
     | 
| 
      
 2597 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2598 
     | 
    
         
            +
                    reconnect_ivl_max = Integer(reconnect_ivl_max)
         
     | 
| 
      
 2599 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_reconnect_ivl_max(self_p, reconnect_ivl_max)
         
     | 
| 
      
 2600 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2601 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2602 
     | 
    
         
            +
             
     | 
| 
      
 2603 
     | 
    
         
            +
                  # Get socket option `backlog`.
         
     | 
| 
      
 2604 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2605 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2606 
     | 
    
         
            +
                  def backlog()
         
     | 
| 
      
 2607 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2608 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2609 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_backlog(self_p)
         
     | 
| 
      
 2610 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2611 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2612 
     | 
    
         
            +
             
     | 
| 
      
 2613 
     | 
    
         
            +
                  # Get socket option `backlog`.
         
     | 
| 
      
 2614 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2615 
     | 
    
         
            +
                  # This is the polymorphic version of #backlog.
         
     | 
| 
      
 2616 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2617 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2618 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2619 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2620 
     | 
    
         
            +
                  def self.backlog(self_p)
         
     | 
| 
      
 2621 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2622 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_backlog(self_p)
         
     | 
| 
      
 2623 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2624 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2625 
     | 
    
         
            +
             
     | 
| 
      
 2626 
     | 
    
         
            +
                  # Set socket option `backlog`.
         
     | 
| 
      
 2627 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2628 
     | 
    
         
            +
                  # @param backlog [Integer, #to_int, #to_i]
         
     | 
| 
      
 2629 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2630 
     | 
    
         
            +
                  def set_backlog(backlog)
         
     | 
| 
      
 2631 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2632 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2633 
     | 
    
         
            +
                    backlog = Integer(backlog)
         
     | 
| 
      
 2634 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_backlog(self_p, backlog)
         
     | 
| 
      
 2635 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2636 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2637 
     | 
    
         
            +
             
     | 
| 
      
 2638 
     | 
    
         
            +
                  # Set socket option `backlog`.
         
     | 
| 
      
 2639 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2640 
     | 
    
         
            +
                  # This is the polymorphic version of #set_backlog.
         
     | 
| 
      
 2641 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2642 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2643 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2644 
     | 
    
         
            +
                  # @param backlog [Integer, #to_int, #to_i]
         
     | 
| 
      
 2645 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2646 
     | 
    
         
            +
                  def self.set_backlog(self_p, backlog)
         
     | 
| 
      
 2647 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2648 
     | 
    
         
            +
                    backlog = Integer(backlog)
         
     | 
| 
      
 2649 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_backlog(self_p, backlog)
         
     | 
| 
      
 2650 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2651 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2652 
     | 
    
         
            +
             
     | 
| 
      
 2653 
     | 
    
         
            +
                  # Get socket option `maxmsgsize`.
         
     | 
| 
      
 2654 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2655 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2656 
     | 
    
         
            +
                  def maxmsgsize()
         
     | 
| 
      
 2657 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2658 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2659 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_maxmsgsize(self_p)
         
     | 
| 
      
 2660 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2661 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2662 
     | 
    
         
            +
             
     | 
| 
      
 2663 
     | 
    
         
            +
                  # Get socket option `maxmsgsize`.
         
     | 
| 
      
 2664 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2665 
     | 
    
         
            +
                  # This is the polymorphic version of #maxmsgsize.
         
     | 
| 
      
 2666 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2667 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2668 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2669 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2670 
     | 
    
         
            +
                  def self.maxmsgsize(self_p)
         
     | 
| 
      
 2671 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2672 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_maxmsgsize(self_p)
         
     | 
| 
      
 2673 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2674 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2675 
     | 
    
         
            +
             
     | 
| 
      
 2676 
     | 
    
         
            +
                  # Set socket option `maxmsgsize`.
         
     | 
| 
      
 2677 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2678 
     | 
    
         
            +
                  # @param maxmsgsize [Integer, #to_int, #to_i]
         
     | 
| 
      
 2679 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2680 
     | 
    
         
            +
                  def set_maxmsgsize(maxmsgsize)
         
     | 
| 
      
 2681 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2682 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2683 
     | 
    
         
            +
                    maxmsgsize = Integer(maxmsgsize)
         
     | 
| 
      
 2684 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_maxmsgsize(self_p, maxmsgsize)
         
     | 
| 
      
 2685 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2686 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2687 
     | 
    
         
            +
             
     | 
| 
      
 2688 
     | 
    
         
            +
                  # Set socket option `maxmsgsize`.
         
     | 
| 
      
 2689 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2690 
     | 
    
         
            +
                  # This is the polymorphic version of #set_maxmsgsize.
         
     | 
| 
      
 2691 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2692 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2693 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2694 
     | 
    
         
            +
                  # @param maxmsgsize [Integer, #to_int, #to_i]
         
     | 
| 
      
 2695 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2696 
     | 
    
         
            +
                  def self.set_maxmsgsize(self_p, maxmsgsize)
         
     | 
| 
      
 2697 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2698 
     | 
    
         
            +
                    maxmsgsize = Integer(maxmsgsize)
         
     | 
| 
      
 2699 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_maxmsgsize(self_p, maxmsgsize)
         
     | 
| 
      
 2700 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2701 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2702 
     | 
    
         
            +
             
     | 
| 
      
 2703 
     | 
    
         
            +
                  # Get socket option `multicast_hops`.
         
     | 
| 
      
 2704 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2705 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2706 
     | 
    
         
            +
                  def multicast_hops()
         
     | 
| 
      
 2707 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2708 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2709 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_multicast_hops(self_p)
         
     | 
| 
      
 2710 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2711 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2712 
     | 
    
         
            +
             
     | 
| 
      
 2713 
     | 
    
         
            +
                  # Get socket option `multicast_hops`.
         
     | 
| 
      
 2714 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2715 
     | 
    
         
            +
                  # This is the polymorphic version of #multicast_hops.
         
     | 
| 
      
 2716 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2717 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2718 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2719 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2720 
     | 
    
         
            +
                  def self.multicast_hops(self_p)
         
     | 
| 
      
 2721 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2722 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_multicast_hops(self_p)
         
     | 
| 
      
 2723 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2724 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2725 
     | 
    
         
            +
             
     | 
| 
      
 2726 
     | 
    
         
            +
                  # Set socket option `multicast_hops`.
         
     | 
| 
      
 2727 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2728 
     | 
    
         
            +
                  # @param multicast_hops [Integer, #to_int, #to_i]
         
     | 
| 
      
 2729 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2730 
     | 
    
         
            +
                  def set_multicast_hops(multicast_hops)
         
     | 
| 
      
 2731 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2732 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2733 
     | 
    
         
            +
                    multicast_hops = Integer(multicast_hops)
         
     | 
| 
      
 2734 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_multicast_hops(self_p, multicast_hops)
         
     | 
| 
      
 2735 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2736 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2737 
     | 
    
         
            +
             
     | 
| 
      
 2738 
     | 
    
         
            +
                  # Set socket option `multicast_hops`.
         
     | 
| 
      
 2739 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2740 
     | 
    
         
            +
                  # This is the polymorphic version of #set_multicast_hops.
         
     | 
| 
      
 2741 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2742 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2743 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2744 
     | 
    
         
            +
                  # @param multicast_hops [Integer, #to_int, #to_i]
         
     | 
| 
      
 2745 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2746 
     | 
    
         
            +
                  def self.set_multicast_hops(self_p, multicast_hops)
         
     | 
| 
      
 2747 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2748 
     | 
    
         
            +
                    multicast_hops = Integer(multicast_hops)
         
     | 
| 
      
 2749 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_multicast_hops(self_p, multicast_hops)
         
     | 
| 
      
 2750 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2751 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2752 
     | 
    
         
            +
             
     | 
| 
      
 2753 
     | 
    
         
            +
                  # Get socket option `rcvtimeo`.
         
     | 
| 
      
 2754 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2755 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2756 
     | 
    
         
            +
                  def rcvtimeo()
         
     | 
| 
      
 2757 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2758 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2759 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvtimeo(self_p)
         
     | 
| 
      
 2760 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2761 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2762 
     | 
    
         
            +
             
     | 
| 
      
 2763 
     | 
    
         
            +
                  # Get socket option `rcvtimeo`.
         
     | 
| 
      
 2764 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2765 
     | 
    
         
            +
                  # This is the polymorphic version of #rcvtimeo.
         
     | 
| 
      
 2766 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2767 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2768 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2769 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2770 
     | 
    
         
            +
                  def self.rcvtimeo(self_p)
         
     | 
| 
      
 2771 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2772 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvtimeo(self_p)
         
     | 
| 
      
 2773 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2774 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2775 
     | 
    
         
            +
             
     | 
| 
      
 2776 
     | 
    
         
            +
                  # Set socket option `rcvtimeo`.
         
     | 
| 
      
 2777 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2778 
     | 
    
         
            +
                  # @param rcvtimeo [Integer, #to_int, #to_i]
         
     | 
| 
      
 2779 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2780 
     | 
    
         
            +
                  def set_rcvtimeo(rcvtimeo)
         
     | 
| 
      
 2781 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2782 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2783 
     | 
    
         
            +
                    rcvtimeo = Integer(rcvtimeo)
         
     | 
| 
      
 2784 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
         
     | 
| 
      
 2785 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2786 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2787 
     | 
    
         
            +
             
     | 
| 
      
 2788 
     | 
    
         
            +
                  # Set socket option `rcvtimeo`.
         
     | 
| 
      
 2789 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2790 
     | 
    
         
            +
                  # This is the polymorphic version of #set_rcvtimeo.
         
     | 
| 
      
 2791 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2792 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2793 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2794 
     | 
    
         
            +
                  # @param rcvtimeo [Integer, #to_int, #to_i]
         
     | 
| 
      
 2795 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2796 
     | 
    
         
            +
                  def self.set_rcvtimeo(self_p, rcvtimeo)
         
     | 
| 
      
 2797 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2798 
     | 
    
         
            +
                    rcvtimeo = Integer(rcvtimeo)
         
     | 
| 
      
 2799 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_rcvtimeo(self_p, rcvtimeo)
         
     | 
| 
      
 2800 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2801 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2802 
     | 
    
         
            +
             
     | 
| 
      
 2803 
     | 
    
         
            +
                  # Get socket option `sndtimeo`.
         
     | 
| 
      
 2804 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2805 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2806 
     | 
    
         
            +
                  def sndtimeo()
         
     | 
| 
      
 2807 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2808 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2809 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndtimeo(self_p)
         
     | 
| 
      
 2810 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2811 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2812 
     | 
    
         
            +
             
     | 
| 
      
 2813 
     | 
    
         
            +
                  # Get socket option `sndtimeo`.
         
     | 
| 
      
 2814 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2815 
     | 
    
         
            +
                  # This is the polymorphic version of #sndtimeo.
         
     | 
| 
      
 2816 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2817 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2818 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2819 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2820 
     | 
    
         
            +
                  def self.sndtimeo(self_p)
         
     | 
| 
      
 2821 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2822 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_sndtimeo(self_p)
         
     | 
| 
      
 2823 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2824 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2825 
     | 
    
         
            +
             
     | 
| 
      
 2826 
     | 
    
         
            +
                  # Set socket option `sndtimeo`.
         
     | 
| 
      
 2827 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2828 
     | 
    
         
            +
                  # @param sndtimeo [Integer, #to_int, #to_i]
         
     | 
| 
      
 2829 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2830 
     | 
    
         
            +
                  def set_sndtimeo(sndtimeo)
         
     | 
| 
      
 2831 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2832 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2833 
     | 
    
         
            +
                    sndtimeo = Integer(sndtimeo)
         
     | 
| 
      
 2834 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndtimeo(self_p, sndtimeo)
         
     | 
| 
      
 2835 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2836 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2837 
     | 
    
         
            +
             
     | 
| 
      
 2838 
     | 
    
         
            +
                  # Set socket option `sndtimeo`.
         
     | 
| 
      
 2839 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2840 
     | 
    
         
            +
                  # This is the polymorphic version of #set_sndtimeo.
         
     | 
| 
      
 2841 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2842 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2843 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2844 
     | 
    
         
            +
                  # @param sndtimeo [Integer, #to_int, #to_i]
         
     | 
| 
      
 2845 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2846 
     | 
    
         
            +
                  def self.set_sndtimeo(self_p, sndtimeo)
         
     | 
| 
      
 2847 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2848 
     | 
    
         
            +
                    sndtimeo = Integer(sndtimeo)
         
     | 
| 
      
 2849 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_sndtimeo(self_p, sndtimeo)
         
     | 
| 
      
 2850 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2851 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2852 
     | 
    
         
            +
             
     | 
| 
      
 2853 
     | 
    
         
            +
                  # Set socket option `xpub_verbose`.
         
     | 
| 
      
 2854 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2855 
     | 
    
         
            +
                  # @param xpub_verbose [Integer, #to_int, #to_i]
         
     | 
| 
      
 2856 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2857 
     | 
    
         
            +
                  def set_xpub_verbose(xpub_verbose)
         
     | 
| 
      
 2858 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2859 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2860 
     | 
    
         
            +
                    xpub_verbose = Integer(xpub_verbose)
         
     | 
| 
      
 2861 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
         
     | 
| 
      
 2862 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2863 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2864 
     | 
    
         
            +
             
     | 
| 
      
 2865 
     | 
    
         
            +
                  # Set socket option `xpub_verbose`.
         
     | 
| 
      
 2866 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2867 
     | 
    
         
            +
                  # This is the polymorphic version of #set_xpub_verbose.
         
     | 
| 
      
 2868 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2869 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2870 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2871 
     | 
    
         
            +
                  # @param xpub_verbose [Integer, #to_int, #to_i]
         
     | 
| 
      
 2872 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2873 
     | 
    
         
            +
                  def self.set_xpub_verbose(self_p, xpub_verbose)
         
     | 
| 
      
 2874 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2875 
     | 
    
         
            +
                    xpub_verbose = Integer(xpub_verbose)
         
     | 
| 
      
 2876 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_xpub_verbose(self_p, xpub_verbose)
         
     | 
| 
      
 2877 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2878 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2879 
     | 
    
         
            +
             
     | 
| 
      
 2880 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive`.
         
     | 
| 
      
 2881 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2882 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2883 
     | 
    
         
            +
                  def tcp_keepalive()
         
     | 
| 
      
 2884 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2885 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2886 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive(self_p)
         
     | 
| 
      
 2887 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2888 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2889 
     | 
    
         
            +
             
     | 
| 
      
 2890 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive`.
         
     | 
| 
      
 2891 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2892 
     | 
    
         
            +
                  # This is the polymorphic version of #tcp_keepalive.
         
     | 
| 
      
 2893 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2894 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2895 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2896 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2897 
     | 
    
         
            +
                  def self.tcp_keepalive(self_p)
         
     | 
| 
      
 2898 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2899 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive(self_p)
         
     | 
| 
      
 2900 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2901 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2902 
     | 
    
         
            +
             
     | 
| 
      
 2903 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive`.
         
     | 
| 
      
 2904 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2905 
     | 
    
         
            +
                  # @param tcp_keepalive [Integer, #to_int, #to_i]
         
     | 
| 
      
 2906 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2907 
     | 
    
         
            +
                  def set_tcp_keepalive(tcp_keepalive)
         
     | 
| 
      
 2908 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2909 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2910 
     | 
    
         
            +
                    tcp_keepalive = Integer(tcp_keepalive)
         
     | 
| 
      
 2911 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive(self_p, tcp_keepalive)
         
     | 
| 
      
 2912 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2913 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2914 
     | 
    
         
            +
             
     | 
| 
      
 2915 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive`.
         
     | 
| 
      
 2916 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2917 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tcp_keepalive.
         
     | 
| 
      
 2918 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2919 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2920 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2921 
     | 
    
         
            +
                  # @param tcp_keepalive [Integer, #to_int, #to_i]
         
     | 
| 
      
 2922 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2923 
     | 
    
         
            +
                  def self.set_tcp_keepalive(self_p, tcp_keepalive)
         
     | 
| 
      
 2924 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2925 
     | 
    
         
            +
                    tcp_keepalive = Integer(tcp_keepalive)
         
     | 
| 
      
 2926 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive(self_p, tcp_keepalive)
         
     | 
| 
      
 2927 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2928 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2929 
     | 
    
         
            +
             
     | 
| 
      
 2930 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_idle`.
         
     | 
| 
      
 2931 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2932 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2933 
     | 
    
         
            +
                  def tcp_keepalive_idle()
         
     | 
| 
      
 2934 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2935 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2936 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_idle(self_p)
         
     | 
| 
      
 2937 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2938 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2939 
     | 
    
         
            +
             
     | 
| 
      
 2940 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_idle`.
         
     | 
| 
      
 2941 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2942 
     | 
    
         
            +
                  # This is the polymorphic version of #tcp_keepalive_idle.
         
     | 
| 
      
 2943 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2944 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2945 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2946 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2947 
     | 
    
         
            +
                  def self.tcp_keepalive_idle(self_p)
         
     | 
| 
      
 2948 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2949 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_idle(self_p)
         
     | 
| 
      
 2950 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2951 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2952 
     | 
    
         
            +
             
     | 
| 
      
 2953 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_idle`.
         
     | 
| 
      
 2954 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2955 
     | 
    
         
            +
                  # @param tcp_keepalive_idle [Integer, #to_int, #to_i]
         
     | 
| 
      
 2956 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2957 
     | 
    
         
            +
                  def set_tcp_keepalive_idle(tcp_keepalive_idle)
         
     | 
| 
      
 2958 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2959 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2960 
     | 
    
         
            +
                    tcp_keepalive_idle = Integer(tcp_keepalive_idle)
         
     | 
| 
      
 2961 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
         
     | 
| 
      
 2962 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2963 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2964 
     | 
    
         
            +
             
     | 
| 
      
 2965 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_idle`.
         
     | 
| 
      
 2966 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2967 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tcp_keepalive_idle.
         
     | 
| 
      
 2968 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2969 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2970 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2971 
     | 
    
         
            +
                  # @param tcp_keepalive_idle [Integer, #to_int, #to_i]
         
     | 
| 
      
 2972 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 2973 
     | 
    
         
            +
                  def self.set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
         
     | 
| 
      
 2974 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2975 
     | 
    
         
            +
                    tcp_keepalive_idle = Integer(tcp_keepalive_idle)
         
     | 
| 
      
 2976 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_idle(self_p, tcp_keepalive_idle)
         
     | 
| 
      
 2977 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2978 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2979 
     | 
    
         
            +
             
     | 
| 
      
 2980 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_cnt`.
         
     | 
| 
      
 2981 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2982 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2983 
     | 
    
         
            +
                  def tcp_keepalive_cnt()
         
     | 
| 
      
 2984 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 2985 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 2986 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_cnt(self_p)
         
     | 
| 
      
 2987 
     | 
    
         
            +
                    result
         
     | 
| 
      
 2988 
     | 
    
         
            +
                  end
         
     | 
| 
      
 2989 
     | 
    
         
            +
             
     | 
| 
      
 2990 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_cnt`.
         
     | 
| 
      
 2991 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2992 
     | 
    
         
            +
                  # This is the polymorphic version of #tcp_keepalive_cnt.
         
     | 
| 
      
 2993 
     | 
    
         
            +
                  #
         
     | 
| 
      
 2994 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 2995 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 2996 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 2997 
     | 
    
         
            +
                  def self.tcp_keepalive_cnt(self_p)
         
     | 
| 
      
 2998 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 2999 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_cnt(self_p)
         
     | 
| 
      
 3000 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3001 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3002 
     | 
    
         
            +
             
     | 
| 
      
 3003 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_cnt`.
         
     | 
| 
      
 3004 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3005 
     | 
    
         
            +
                  # @param tcp_keepalive_cnt [Integer, #to_int, #to_i]
         
     | 
| 
      
 3006 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3007 
     | 
    
         
            +
                  def set_tcp_keepalive_cnt(tcp_keepalive_cnt)
         
     | 
| 
      
 3008 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3009 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3010 
     | 
    
         
            +
                    tcp_keepalive_cnt = Integer(tcp_keepalive_cnt)
         
     | 
| 
      
 3011 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
         
     | 
| 
      
 3012 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3013 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3014 
     | 
    
         
            +
             
     | 
| 
      
 3015 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_cnt`.
         
     | 
| 
      
 3016 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3017 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tcp_keepalive_cnt.
         
     | 
| 
      
 3018 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3019 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3020 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3021 
     | 
    
         
            +
                  # @param tcp_keepalive_cnt [Integer, #to_int, #to_i]
         
     | 
| 
      
 3022 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3023 
     | 
    
         
            +
                  def self.set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
         
     | 
| 
      
 3024 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3025 
     | 
    
         
            +
                    tcp_keepalive_cnt = Integer(tcp_keepalive_cnt)
         
     | 
| 
      
 3026 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_cnt(self_p, tcp_keepalive_cnt)
         
     | 
| 
      
 3027 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3028 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3029 
     | 
    
         
            +
             
     | 
| 
      
 3030 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_intvl`.
         
     | 
| 
      
 3031 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3032 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3033 
     | 
    
         
            +
                  def tcp_keepalive_intvl()
         
     | 
| 
      
 3034 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3035 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3036 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_intvl(self_p)
         
     | 
| 
      
 3037 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3038 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3039 
     | 
    
         
            +
             
     | 
| 
      
 3040 
     | 
    
         
            +
                  # Get socket option `tcp_keepalive_intvl`.
         
     | 
| 
      
 3041 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3042 
     | 
    
         
            +
                  # This is the polymorphic version of #tcp_keepalive_intvl.
         
     | 
| 
      
 3043 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3044 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3045 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3046 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3047 
     | 
    
         
            +
                  def self.tcp_keepalive_intvl(self_p)
         
     | 
| 
      
 3048 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3049 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_keepalive_intvl(self_p)
         
     | 
| 
      
 3050 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3051 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3052 
     | 
    
         
            +
             
     | 
| 
      
 3053 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_intvl`.
         
     | 
| 
      
 3054 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3055 
     | 
    
         
            +
                  # @param tcp_keepalive_intvl [Integer, #to_int, #to_i]
         
     | 
| 
      
 3056 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3057 
     | 
    
         
            +
                  def set_tcp_keepalive_intvl(tcp_keepalive_intvl)
         
     | 
| 
      
 3058 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3059 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3060 
     | 
    
         
            +
                    tcp_keepalive_intvl = Integer(tcp_keepalive_intvl)
         
     | 
| 
      
 3061 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
         
     | 
| 
      
 3062 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3063 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3064 
     | 
    
         
            +
             
     | 
| 
      
 3065 
     | 
    
         
            +
                  # Set socket option `tcp_keepalive_intvl`.
         
     | 
| 
      
 3066 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3067 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tcp_keepalive_intvl.
         
     | 
| 
      
 3068 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3069 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3070 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3071 
     | 
    
         
            +
                  # @param tcp_keepalive_intvl [Integer, #to_int, #to_i]
         
     | 
| 
      
 3072 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3073 
     | 
    
         
            +
                  def self.set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
         
     | 
| 
      
 3074 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3075 
     | 
    
         
            +
                    tcp_keepalive_intvl = Integer(tcp_keepalive_intvl)
         
     | 
| 
      
 3076 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_keepalive_intvl(self_p, tcp_keepalive_intvl)
         
     | 
| 
      
 3077 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3078 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3079 
     | 
    
         
            +
             
     | 
| 
      
 3080 
     | 
    
         
            +
                  # Get socket option `tcp_accept_filter`.
         
     | 
| 
      
 3081 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3082 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 3083 
     | 
    
         
            +
                  def tcp_accept_filter()
         
     | 
| 
      
 3084 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3085 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3086 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_accept_filter(self_p)
         
     | 
| 
      
 3087 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 3088 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3089 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3090 
     | 
    
         
            +
             
     | 
| 
      
 3091 
     | 
    
         
            +
                  # Get socket option `tcp_accept_filter`.
         
     | 
| 
      
 3092 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3093 
     | 
    
         
            +
                  # This is the polymorphic version of #tcp_accept_filter.
         
     | 
| 
      
 3094 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3095 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3096 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3097 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 3098 
     | 
    
         
            +
                  def self.tcp_accept_filter(self_p)
         
     | 
| 
      
 3099 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3100 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_tcp_accept_filter(self_p)
         
     | 
| 
      
 3101 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 3102 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3103 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3104 
     | 
    
         
            +
             
     | 
| 
      
 3105 
     | 
    
         
            +
                  # Set socket option `tcp_accept_filter`.
         
     | 
| 
      
 3106 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3107 
     | 
    
         
            +
                  # @param tcp_accept_filter [String, #to_str, #to_s]
         
     | 
| 
      
 3108 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3109 
     | 
    
         
            +
                  def set_tcp_accept_filter(tcp_accept_filter)
         
     | 
| 
      
 3110 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3111 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3112 
     | 
    
         
            +
                    tcp_accept_filter = String(tcp_accept_filter)
         
     | 
| 
      
 3113 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_accept_filter(self_p, tcp_accept_filter)
         
     | 
| 
      
 3114 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3115 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3116 
     | 
    
         
            +
             
     | 
| 
      
 3117 
     | 
    
         
            +
                  # Set socket option `tcp_accept_filter`.
         
     | 
| 
      
 3118 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3119 
     | 
    
         
            +
                  # This is the polymorphic version of #set_tcp_accept_filter.
         
     | 
| 
      
 3120 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3121 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3122 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3123 
     | 
    
         
            +
                  # @param tcp_accept_filter [String, #to_str, #to_s]
         
     | 
| 
      
 3124 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3125 
     | 
    
         
            +
                  def self.set_tcp_accept_filter(self_p, tcp_accept_filter)
         
     | 
| 
      
 3126 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3127 
     | 
    
         
            +
                    tcp_accept_filter = String(tcp_accept_filter)
         
     | 
| 
      
 3128 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_set_tcp_accept_filter(self_p, tcp_accept_filter)
         
     | 
| 
      
 3129 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3130 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3131 
     | 
    
         
            +
             
     | 
| 
      
 3132 
     | 
    
         
            +
                  # Get socket option `rcvmore`.
         
     | 
| 
      
 3133 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3134 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3135 
     | 
    
         
            +
                  def rcvmore()
         
     | 
| 
      
 3136 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3137 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3138 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvmore(self_p)
         
     | 
| 
      
 3139 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3140 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3141 
     | 
    
         
            +
             
     | 
| 
      
 3142 
     | 
    
         
            +
                  # Get socket option `rcvmore`.
         
     | 
| 
      
 3143 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3144 
     | 
    
         
            +
                  # This is the polymorphic version of #rcvmore.
         
     | 
| 
      
 3145 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3146 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3147 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3148 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3149 
     | 
    
         
            +
                  def self.rcvmore(self_p)
         
     | 
| 
      
 3150 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3151 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_rcvmore(self_p)
         
     | 
| 
      
 3152 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3153 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3154 
     | 
    
         
            +
             
     | 
| 
      
 3155 
     | 
    
         
            +
                  # Get socket option `fd`.
         
     | 
| 
      
 3156 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3157 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 3158 
     | 
    
         
            +
                  def fd()
         
     | 
| 
      
 3159 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3160 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3161 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_fd(self_p)
         
     | 
| 
      
 3162 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3163 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3164 
     | 
    
         
            +
             
     | 
| 
      
 3165 
     | 
    
         
            +
                  # Get socket option `fd`.
         
     | 
| 
      
 3166 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3167 
     | 
    
         
            +
                  # This is the polymorphic version of #fd.
         
     | 
| 
      
 3168 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3169 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3170 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3171 
     | 
    
         
            +
                  # @return [::FFI::Pointer]
         
     | 
| 
      
 3172 
     | 
    
         
            +
                  def self.fd(self_p)
         
     | 
| 
      
 3173 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3174 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_fd(self_p)
         
     | 
| 
      
 3175 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3176 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3177 
     | 
    
         
            +
             
     | 
| 
      
 3178 
     | 
    
         
            +
                  # Get socket option `events`.
         
     | 
| 
      
 3179 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3180 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3181 
     | 
    
         
            +
                  def events()
         
     | 
| 
      
 3182 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3183 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3184 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_events(self_p)
         
     | 
| 
      
 3185 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3186 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3187 
     | 
    
         
            +
             
     | 
| 
      
 3188 
     | 
    
         
            +
                  # Get socket option `events`.
         
     | 
| 
      
 3189 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3190 
     | 
    
         
            +
                  # This is the polymorphic version of #events.
         
     | 
| 
      
 3191 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3192 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3193 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3194 
     | 
    
         
            +
                  # @return [Integer]
         
     | 
| 
      
 3195 
     | 
    
         
            +
                  def self.events(self_p)
         
     | 
| 
      
 3196 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3197 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_events(self_p)
         
     | 
| 
      
 3198 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3199 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3200 
     | 
    
         
            +
             
     | 
| 
      
 3201 
     | 
    
         
            +
                  # Get socket option `last_endpoint`.
         
     | 
| 
      
 3202 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3203 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 3204 
     | 
    
         
            +
                  def last_endpoint()
         
     | 
| 
      
 3205 
     | 
    
         
            +
                    raise DestroyedError unless @ptr
         
     | 
| 
      
 3206 
     | 
    
         
            +
                    self_p = @ptr
         
     | 
| 
      
 3207 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_last_endpoint(self_p)
         
     | 
| 
      
 3208 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 3209 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3210 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3211 
     | 
    
         
            +
             
     | 
| 
      
 3212 
     | 
    
         
            +
                  # Get socket option `last_endpoint`.
         
     | 
| 
      
 3213 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3214 
     | 
    
         
            +
                  # This is the polymorphic version of #last_endpoint.
         
     | 
| 
      
 3215 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3216 
     | 
    
         
            +
                  # @param self_p [CZMQ::Zsock, #__ptr, ::FFI::Pointer, nil]
         
     | 
| 
      
 3217 
     | 
    
         
            +
                  #   object reference to use this method on
         
     | 
| 
      
 3218 
     | 
    
         
            +
                  # @return [::FFI::AutoPointer]
         
     | 
| 
      
 3219 
     | 
    
         
            +
                  def self.last_endpoint(self_p)
         
     | 
| 
      
 3220 
     | 
    
         
            +
                    self_p = self_p.__ptr if self_p.respond_to?(:__ptr)
         
     | 
| 
      
 3221 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_last_endpoint(self_p)
         
     | 
| 
      
 3222 
     | 
    
         
            +
                    result = ::FFI::AutoPointer.new(result, LibC.method(:free))
         
     | 
| 
      
 3223 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3224 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3225 
     | 
    
         
            +
             
     | 
| 
      
 3226 
     | 
    
         
            +
                  # Self test of this class.
         
     | 
| 
      
 3227 
     | 
    
         
            +
                  #
         
     | 
| 
      
 3228 
     | 
    
         
            +
                  # @param verbose [Boolean]
         
     | 
| 
      
 3229 
     | 
    
         
            +
                  # @return [void]
         
     | 
| 
      
 3230 
     | 
    
         
            +
                  def self.test(verbose)
         
     | 
| 
      
 3231 
     | 
    
         
            +
                    verbose = !(0==verbose||!verbose) # boolean
         
     | 
| 
      
 3232 
     | 
    
         
            +
                    result = ::CZMQ::FFI.zsock_test(verbose)
         
     | 
| 
      
 3233 
     | 
    
         
            +
                    result
         
     | 
| 
      
 3234 
     | 
    
         
            +
                  end
         
     | 
| 
      
 3235 
     | 
    
         
            +
                end
         
     | 
| 
      
 3236 
     | 
    
         
            +
              end
         
     | 
| 
      
 3237 
     | 
    
         
            +
            end
         
     | 
| 
      
 3238 
     | 
    
         
            +
             
     | 
| 
      
 3239 
     | 
    
         
            +
            ################################################################################
         
     | 
| 
      
 3240 
     | 
    
         
            +
            #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
         
     | 
| 
      
 3241 
     | 
    
         
            +
            #  Please refer to the README for information about making permanent changes.  #
         
     | 
| 
      
 3242 
     | 
    
         
            +
            ################################################################################
         
     |