Method: Corosync::CMAP#connect

Defined in:
lib/corosync/cmap.rb

#connectvoid

This method returns an undefined value.

Connect to the CMAP service.



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/corosync/cmap.rb', line 49

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