Sha256: 9df6952b9cb525d418f16e0e97b8b33cdc9fef0ffbbf95a9ab3741dd3ac4e2cd
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
class ProxyMachine class CallbackServerConnection < WarningServerConnection # def post_init # # empty # end def callback=(c) @callback = c end def receive_data(data) @buffer ||= [] @buffer << data @data_received = true if returned = @callback.call(@buffer.join('')) @client_side.send_data returned proxy_incoming_to(@client_side, 10240) end rescue => e $logger.info e.message + e.backtrace.join("\n") end end end
Version data entries
3 entries across 3 versions & 1 rubygems