Parent

Methods

Class Index [+]

Quicksearch

MessagePack::RPC::UNIXServerTransport

Public Class Methods

new(address) click to toggle source
     # File lib/msgpack/rpc/transport/unix.rb, line 118
118:         def initialize(address)
119:                 @address = address
120:                 @sock = nil
121:         end

Public Instance Methods

close() click to toggle source

ServerTransport interface

     # File lib/msgpack/rpc/transport/unix.rb, line 136
136:         def close
137:                 return unless @lsock
138:                 @lsock.detach if @lsock.attached?
139:                 @lsock.close
140:         end
listen(server) click to toggle source

ServerTransport interface

     # File lib/msgpack/rpc/transport/unix.rb, line 124
124:         def listen(server)
125:                 @server = server
126:                 @lsock  = Rev::UNIXServer.new(@address, ServerSocket, @server)
127:                 begin
128:                         @server.loop.attach(@lsock)
129:                 rescue
130:                         @lsock.close
131:                         raise
132:                 end
133:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.