Module: XS::IdentitySupport
- Included in:
- Socket
- Defined in:
- lib/ffi-rxs/socket.rb
Instance Method Summary (collapse)
-
- (Object) identity
Convenience method for getting the value of the socket IDENTITY.
-
- (Object) identity=(value)
Convenience method for setting the value of the socket IDENTITY.
Instance Method Details
- (Object) identity
Convenience method for getting the value of the socket IDENTITY.
603 604 605 606 607 |
# File 'lib/ffi-rxs/socket.rb', line 603 def identity array = [] getsockopt IDENTITY, array array.at(0) end |
- (Object) identity=(value)
Convenience method for setting the value of the socket IDENTITY.
612 613 614 |
# File 'lib/ffi-rxs/socket.rb', line 612 def identity=(value) setsockopt IDENTITY, value.to_s end |