Parent

Class Index [+]

Quicksearch

MessagePack::RPC::TCPClientTransport::ClientSocket

Public Class Methods

new(io, transport, session) click to toggle source
     # File lib/msgpack/rpc/transport/tcp.rb, line 134
134:                 def initialize(io, transport, session)
135:                         super(io)
136:                         @t = transport
137:                         @s = session
138:                 end

Public Instance Methods

on_close() click to toggle source

from Rev::TCPSocket

     # File lib/msgpack/rpc/transport/tcp.rb, line 180
180:                 def on_close
181:                         return unless @t
182:                         @t.on_close(self)
183:                         @t = nil
184:                         @s = nil
185:                 rescue
186:                         nil
187:                 end
on_connect() click to toggle source

from Rev::TCPSocket

     # File lib/msgpack/rpc/transport/tcp.rb, line 166
166:                 def on_connect
167:                         return unless @t
168:                         @t.on_connect(self)
169:                 end
on_connect_failed() click to toggle source

from Rev::TCPSocket

     # File lib/msgpack/rpc/transport/tcp.rb, line 172
172:                 def on_connect_failed
173:                         return unless @t
174:                         @t.on_connect_failed(self)
175:                 rescue
176:                         nil
177:                 end
on_notify(method, param) click to toggle source

MessageReceiver interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 156
156:                 def on_notify(method, param)
157:                         raise Error.new("notify message on client session")
158:                 end
on_request(msgid, method, param) click to toggle source

MessageReceiver interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 151
151:                 def on_request(msgid, method, param)
152:                         raise Error.new("request message on client session")
153:                 end
on_response(msgid, error, result) click to toggle source

MessageReceiver interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 161
161:                 def on_response(msgid, error, result)
162:                         @s.on_response(self, msgid, error, result)
163:                 end
send_data(data) click to toggle source

MessageSendable interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 141
141:                 def send_data(data)
142:                         write data
143:                 end
send_pending(data) click to toggle source

from TCPClientTransport::on_connect

     # File lib/msgpack/rpc/transport/tcp.rb, line 146
146:                 def send_pending(data)
147:                         write data
148:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.