Class: BasicSocket

Inherits:
IO show all
Defined in:
lib/polyphony/extensions/socket.rb

Overview

BasicSocket extensions

Direct Known Subclasses

Socket, UNIXSocket

Instance Method Summary collapse

Methods inherited from IO

#close, copy_stream, deflate, double_splice, #double_splice, #feed_loop, gunzip, gzip, http1_splice_chunked, inflate, orig_readlines, #read_loop, readlines, splice, #splice_from, tee, #tee_from, #wait_readable, #wait_writable

Instance Method Details

#__read_method__:backend_recv

Returns :backend_recv. This method is used to tell parsers which read method to use for this object.

Returns:

  • (:backend_recv)

    use Polyphony.backend_recv to parse from socket



14
15
16
# File 'lib/polyphony/extensions/socket.rb', line 14

def __read_method__
  :backend_recv
end

#__write_method__:backend_send

Returns :backend_send. This method is used to tell various libraries which write method to use for this object.

Returns:

  • (:backend_send)

    use Polyphony.backend_send to send DATA



22
23
24
# File 'lib/polyphony/extensions/socket.rb', line 22

def __write_method__
  :backend_send
end