Parent

Class Index [+]

Quicksearch

MessagePack::RPC::UNIXClientTransport

Public Class Methods

new(session, address) click to toggle source
    # File lib/msgpack/rpc/transport/unix.rb, line 59
59:         def initialize(session, address)
60:                 io = UNIXSocket.new(address)
61: 
62:                 begin
63:                         @sock = ClientSocket.new(io, session)
64:                 rescue
65:                         io.close
66:                         raise
67:                 end
68: 
69:                 begin
70:                         session.loop.attach(@sock)
71:                 rescue
72:                         @sock.close
73:                         raise
74:                 end
75:         end

Public Instance Methods

close() click to toggle source

ClientTransport interface

    # File lib/msgpack/rpc/transport/unix.rb, line 83
83:         def close
84:                 @sock.detach if @sock.attached?
85:                 @sock.close
86:         end
send_data(data) click to toggle source

ClientTransport interface

    # File lib/msgpack/rpc/transport/unix.rb, line 78
78:         def send_data(data)
79:                 @sock.send_data(data)
80:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.