Methods

Files

RawJsonRpc::ClientSock

Implements the raw json rpc client over a tcp socket. Includes the RawClientJsonRpcBase Module

Public Class Methods

new(ip, port) click to toggle source

Init the socket with host.

# File lib/rawjsonrpc/client.rb, line 95
def initialize(ip, port)
  @socket = TCPSocket.new(ip, port)
end

Public Instance Methods

close() click to toggle source

closes the socket connection

# File lib/rawjsonrpc/client.rb, line 99
def close
  @socket.close
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.