[Groonga-commit] droonga/droonga-client-ruby at d816a54 [master] Expose default host and port of Receiver

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 24 18:22:01 JST 2013


YUKI Hiroshi	2013-10-24 18:22:01 +0900 (Thu, 24 Oct 2013)

  New Revision: d816a54e5dc554cbf42005c92b84c51b17badc79
  https://github.com/droonga/droonga-client-ruby/commit/d816a54e5dc554cbf42005c92b84c51b17badc79

  Message:
    Expose default host and port of Receiver

  Modified files:
    lib/droonga/client/connection/droonga_protocol.rb

  Modified: lib/droonga/client/connection/droonga_protocol.rb (+5 -2)
===================================================================
--- lib/droonga/client/connection/droonga_protocol.rb    2013-09-11 15:34:06 +0900 (27b91c8)
+++ lib/droonga/client/connection/droonga_protocol.rb    2013-10-24 18:22:01 +0900 (bb406bc)
@@ -56,10 +56,13 @@ module Droonga
         end
 
         class Receiver
+          DEFAULT_HOST = "0.0.0.0"
+          DEFAULT_PORT = 0
+
           def initialize(options={})
             default_options = {
-              :host => "0.0.0.0",
-              :port => 0,
+              :host => DEFAULT_HOST,
+              :port => DEFAULT_PORT,
             }
             options = default_options.merge(options)
             @socket = TCPServer.new(options[:host], options[:port])
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index