Class: LightIO::Library::BasicSocket

Inherits:
IO
  • Object
show all
Extended by:
Forwardable, Module::BasicSocket::ClassMethods
Includes:
Base, Wrap::IOWrapper
Defined in:
lib/lightio/library/socket.rb

Direct Known Subclasses

IPSocket, Socket, UNIXSocket

Instance Method Summary collapse

Methods included from Module::BasicSocket::ClassMethods

for_fd

Methods included from Wrap::IOWrapper

included, #initialize

Methods included from Base

included, #initialize

Methods inherited from IO

#binmode, #lineno, #lineno=, #rewind, #seek, #set_encoding, #to_io

Methods included from Module::IO::ClassMethods

#copy_stream, #open, #pipe, #select

Methods included from IO::IOMethods

#close, #eof, #flush, #getbyte, #getc, #gets, #lightio_initialize, #print, #printf, #puts, #read, #readbyte, #readchar, #readline, #readlines, #readpartial, #wait, #wait_readable, #wait_writable, #write

Instance Method Details

#shutdown(*args) ⇒ Object



69
70
71
72
73
# File 'lib/lightio/library/socket.rb', line 69

def shutdown(*args)
  # close watcher before io shutdown
  io_watcher.close
  @obj.shutdown(*args)
end