Class Thrift::UNIXSocket
In: lib/thrift/transport/unix_socket.rb
lib/thrift/transport/unix_socket.rb
Parent: Socket

Methods

new   new   open   open  

Public Class methods

[Source]

    # File lib/thrift/transport/unix_socket.rb, line 25
25:     def initialize(path, timeout=nil)
26:       @path = path
27:       @timeout = timeout
28:       @desc = @path # for read()'s error
29:       @handle = nil
30:     end

[Source]

    # File lib/thrift/transport/unix_socket.rb, line 25
25:     def initialize(path, timeout=nil)
26:       @path = path
27:       @timeout = timeout
28:       @desc = @path # for read()'s error
29:       @handle = nil
30:     end

Public Instance methods

[Source]

    # File lib/thrift/transport/unix_socket.rb, line 32
32:     def open
33:       begin
34:         @handle = ::UNIXSocket.new(@path)
35:       rescue StandardError
36:         raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}")
37:       end
38:     end

[Source]

    # File lib/thrift/transport/unix_socket.rb, line 32
32:     def open
33:       begin
34:         @handle = ::UNIXSocket.new(@path)
35:       rescue StandardError
36:         raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}")
37:       end
38:     end

[Validate]