Methods

Thrift::UNIXSocket

Public Class Methods

new(path, timeout=nil) click to toggle source
# File lib/thrift/transport/unix_socket.rb, line 24
def initialize(path, timeout=nil)
  @path = path
  @timeout = timeout
  @desc = @path # for read()'s error
  @handle = nil
end

Public Instance Methods

open() click to toggle source
# File lib/thrift/transport/unix_socket.rb, line 31
def open
  begin
    @handle = ::UNIXSocket.new(@path)
  rescue StandardError
    raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}")
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.