Class: LightIO::Library::UNIXSocket
Instance Method Summary
collapse
Methods included from Base
included, #initialize
Methods inherited from BasicSocket
#shutdown
#for_fd
included, #initialize
Methods inherited from IO
#to_io
#open, #pipe, #select
#close, #eof, #getbyte, #getc, #gets, included, #print, #printf, #puts, #read, #readbyte, #readchar, #readline, #readlines, #readpartial, #wait, #wait_readable, #wait_writable
Instance Method Details
#recv_io(*args) ⇒ Object
204
205
206
207
208
209
210
|
# File 'lib/lightio/library/socket.rb', line 204
def recv_io(*args)
io = @obj.recv_io(*args)
if (wrapper = LightIO.const_get(io.class.to_s))
return wrapper._wrap(io) if wrapper.respond_to?(:_wrap)
end
io
end
|
#send_io(io) ⇒ Object
199
200
201
202
|
# File 'lib/lightio/library/socket.rb', line 199
def send_io(io)
io = io.send(:light_io_raw_obj) if io.is_a?(LightIO::Library::IO)
@obj.send_io(io)
end
|