Class: CRuby::TcpServerChannel

Inherits:
IoChannel show all
Includes:
IOT
Defined in:
lib/cruby/channel.rb

Instance Attribute Summary

Attributes inherited from IoChannel

#io

Instance Method Summary collapse

Methods included from IOT

exec, input, output

Methods inherited from IoChannel

#initialize, #output, #recvEvt, #sendEvt

Methods inherited from Channel

#initialize, #recv, #recvEvt, #send, #sendEvt

Constructor Details

This class inherits a constructor from CRuby::IoChannel

Instance Method Details

#inputObject



190
191
192
193
194
195
196
# File 'lib/cruby/channel.rb', line 190

def input
  s = @io.accept
  # チャネルの受信待ちキューのプロセスを取り出す
  item = @recvQ.dequeue
  item['flg'][0] = true
  item['cont'].call(CRuby::IoChannel.new(s))
end