Thin::Backends::SwiftiplyClient

Backend to act as a Swiftiply client (swiftiply.swiftcore.org).

Attributes

key[RW]
host[RW]
port[RW]

Public Class Methods

new(host, port, options={}) click to toggle source
    # File lib/thin/backends/swiftiply_client.rb, line 9
 9:       def initialize(host, port, options={})
10:         @host = host
11:         @port = port.to_i
12:         @key  = options[:swiftiply].to_s
13:         super()
14:       end

Public Instance Methods

connect() click to toggle source

Connect the server

    # File lib/thin/backends/swiftiply_client.rb, line 17
17:       def connect
18:         EventMachine.connect(@host, @port, SwiftiplyConnection, &method(:initialize_connection))
19:       end
disconnect() click to toggle source

Stops the server

    # File lib/thin/backends/swiftiply_client.rb, line 22
22:       def disconnect
23:         EventMachine.stop
24:       end
to_s() click to toggle source
    # File lib/thin/backends/swiftiply_client.rb, line 26
26:       def to_s
27:         "#{@host}:#{@port} swiftiply"
28:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.