Module: ThriftHelpers::Server::TransportInterface

Included in:
ThriftHelpers::Server
Defined in:
lib/thrift_client/server.rb

Instance Method Summary collapse

Instance Method Details

#flushObject



94
95
96
# File 'lib/thrift_client/server.rb', line 94

def flush
  transport.flush
end

#read(sz) ⇒ Object



73
74
75
# File 'lib/thrift_client/server.rb', line 73

def read(sz)
  transport.read(sz)
end

#read_all(sz) ⇒ Object



85
86
87
# File 'lib/thrift_client/server.rb', line 85

def read_all(sz)
  transport.read_all(sz)
end

#read_byteObject



77
78
79
# File 'lib/thrift_client/server.rb', line 77

def read_byte
  transport.read_byte
end

#read_into_buffer(buffer, size) ⇒ Object



81
82
83
# File 'lib/thrift_client/server.rb', line 81

def read_into_buffer(buffer, size)
  transport.read_into_buffer(buffer, size)
end

#timeoutObject



102
103
104
# File 'lib/thrift_client/server.rb', line 102

def timeout
  transport.timeout
end

#timeout=(timeout) ⇒ Object



98
99
100
# File 'lib/thrift_client/server.rb', line 98

def timeout=(timeout)
  transport.timeout = timeout if transport.respond_to?(:timeout=)
end

#write(buf) ⇒ Object Also known as: <<



89
90
91
# File 'lib/thrift_client/server.rb', line 89

def write(buf)
  transport.write(buf)
end