lib/corosync/cmap.rb
# Connect to the CMAP service.
#
# @return [void]
Connect to the CMAP service.
Connect to the CMAP service .
def connect
		handle_ptr = FFI::MemoryPointer.new(Corosync.find_type(:cmap_handle_t))
		Corosync.cs_send(:cmap_initialize, handle_ptr)
		@handle = handle_ptr.read_uint64
		fd_ptr = FFI::MemoryPointer.new(:int)
		Corosync.cs_send(:cmap_fd_get, @handle, fd_ptr)
		@fd = IO.new(fd_ptr.read_int)
	end
def connect handle_ptr = FFI :: MemoryPointer . new ( Corosync . find_type ( :cmap_handle_t ) ) Corosync . cs_send ( :cmap_initialize , handle_ptr ) @handle = handle_ptr . read_uint64 fd_ptr = FFI :: MemoryPointer . new ( :int ) Corosync . cs_send ( :cmap_fd_get , @handle , fd_ptr ) @fd = IO . new ( fd_ptr . read_int ) end
Connect to the CMAP service.
Connect to the CMAP service .
None
void