[Kde-bindings] [Bug 100165] New: qtruby Qt::Socket::connectToHost fails on open call

Caleb Tennis caleb at gentoo.org
Thu Feb 24 14:13:24 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=100165         
           Summary: qtruby Qt::Socket::connectToHost fails on open call
           Product: bindings
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings mail kde org
        ReportedBy: caleb gentoo org


Version:            (using KDE KDE 3.3.92)
OS:                Linux

It is a known problem:
http://rubyforge.org/forum/forum.php?thread_id=1832&forum_id=723

My workaround for this, which could probably be integrated into qtruby.rb somehow is to do this:


module Kernel
  
  def undef_open
    alias_method :aliased_open, :open 
    undef_method :open
  end
  
  def def_open
    alias_method :open, :aliased_open
    undef_method :aliased_open
  end
  
end

Then, anywhere where I do a connectToHost, I simply put an undef_open and def_open around it.

It may be possible to directly override connectToHost and provide this functionality as well.



More information about the Kde-bindings mailing list