connect (Irc::IrcSocket)

    # File rbot/ircsocket.rb, line 31
        def connect
          if(@host)
            begin
              @sock=TCPSocket.new(@server, @port, @host)
            rescue ArgumentError => e
              $stderr.puts "Your version of ruby does not support binding to a "
              $stderr.puts "specific local address, please upgrade if you wish "
              $stderr.puts "to use HOST = foo"
              $stderr.puts "(this option has been disabled in order to continue)"
              @sock=TCPSocket.new(@server, @port)
            end
          else
            @sock=TCPSocket.new(@server, @port)
          end
          @qthread = false
          @qmutex = Mutex.new
          @sendq = Array.new
          if (@sendfreq > 0)
            @qthread = Thread.new { spooler }
          end
        end