Module: ZMQ::IdentitySupport

Included in:
Socket
Defined in:
lib/ffi-rzmq/socket.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) identity

Convenience method for getting the value of the socket IDENTITY.



540
541
542
543
544
# File 'lib/ffi-rzmq/socket.rb', line 540

def identity
  array = []
  getsockopt IDENTITY, array
  array.at(0)
end

- (Object) identity=(value)

Convenience method for setting the value of the socket IDENTITY.



548
549
550
# File 'lib/ffi-rzmq/socket.rb', line 548

def identity=(value)
  setsockopt IDENTITY, value.to_s
end