Parent

Class Index [+]

Quicksearch

MessagePack::RPC::UDPClientTransport

Public Class Methods

new(session, address) click to toggle source
    # File lib/msgpack/rpc/transport/udp.rb, line 63
63:         def initialize(session, address)
64:                 io = UDPSocket.new
65:                 io.connect(*address)
66: 
67:                 begin
68:                         @sock = ClientSocket.new(io, session)
69:                 rescue
70:                         io.close
71:                         raise
72:                 end
73: 
74:                 begin
75:                         session.loop.attach(@sock)
76:                 rescue
77:                         @sock.close
78:                         raise
79:                 end
80:         end

Public Instance Methods

close() click to toggle source

ClientTransport interface

    # File lib/msgpack/rpc/transport/udp.rb, line 88
88:         def close
89:                 @sock.detach if @sock.attached?
90:                 @sock.close
91:         end
send_data(data) click to toggle source

ClientTransport interface

    # File lib/msgpack/rpc/transport/udp.rb, line 83
83:         def send_data(data)
84:                 @sock.send_data(data)
85:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.