Parent

Methods

Class Index [+]

Quicksearch

MessagePack::RPC::TCPServerTransport

Public Class Methods

new(address) click to toggle source
     # File lib/msgpack/rpc/transport/tcp.rb, line 193
193:         def initialize(address)
194:                 @address = address
195:                 @lsock = nil
196:         end

Public Instance Methods

close() click to toggle source

ServerTransport interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 212
212:         def close
213:                 return unless @lsock
214:                 @lsock.detach if @lsock.attached?
215:                 @lsock.close
216:         end
listen(server) click to toggle source

ServerTransport interface

     # File lib/msgpack/rpc/transport/tcp.rb, line 199
199:         def listen(server)
200:                 @server = server
201:                 host, port = *@address.unpack
202:                 @lsock  = Rev::TCPServer.new(host, port, ServerSocket, @server)
203:                 begin
204:                         @server.loop.attach(@lsock)
205:                 rescue
206:                         @lsock.close
207:                         raise
208:                 end
209:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.