Class: Hprose::TcpClient

Inherits:
Client
  • Object
show all
Defined in:
lib/hprose/tcpclient.rb

Defined Under Namespace

Modules: TcpConnStatus Classes: TcpConnEntry, TcpConnPool

Constant Summary

Constants included from ResultMode

ResultMode::Normal, ResultMode::Raw, ResultMode::RawWithEndTag, ResultMode::Serialized

Constants included from Tags

Hprose::Tags::TagArgument, Hprose::Tags::TagBytes, Hprose::Tags::TagCall, Hprose::Tags::TagClass, Hprose::Tags::TagClosebrace, Hprose::Tags::TagDate, Hprose::Tags::TagDouble, Hprose::Tags::TagEmpty, Hprose::Tags::TagEnd, Hprose::Tags::TagError, Hprose::Tags::TagFalse, Hprose::Tags::TagFunctions, Hprose::Tags::TagGuid, Hprose::Tags::TagInfinity, Hprose::Tags::TagInteger, Hprose::Tags::TagList, Hprose::Tags::TagLong, Hprose::Tags::TagMap, Hprose::Tags::TagNaN, Hprose::Tags::TagNeg, Hprose::Tags::TagNine, Hprose::Tags::TagNull, Hprose::Tags::TagObject, Hprose::Tags::TagOpenbrace, Hprose::Tags::TagPoint, Hprose::Tags::TagPos, Hprose::Tags::TagQuote, Hprose::Tags::TagRef, Hprose::Tags::TagResult, Hprose::Tags::TagSemicolon, Hprose::Tags::TagString, Hprose::Tags::TagTime, Hprose::Tags::TagTrue, Hprose::Tags::TagUTC, Hprose::Tags::TagUTF8Char, Hprose::Tags::TagZero

Instance Attribute Summary

Attributes inherited from Client

#simple, #uri

Instance Method Summary collapse

Methods inherited from Client

#[], __new__, #add_filter, #filter, #filter=, inherited, #invoke, new, #onerror, #onerror=, #remove_filter, #use_service

Constructor Details

#initialize(uri = nil) ⇒ TcpClient

Returns a new instance of TcpClient.



102
103
104
105
# File 'lib/hprose/tcpclient.rb', line 102

def initialize(uri = nil)
  super
  @pool = TcpConnPool.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hprose::Client