--r8t48UFsdbeI+Vmv
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

Tue, Nov 11, 1997 at 12:09:12AM +0900 ¤Ë¤ª¤¤¤Æ
Kikutani Makoto Û©¤¯:

> Á°¤Ë¤â¤Á¤ç¤Ã¤È¤¤¿¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ÅºÉ¨Â¤Â¤ÎC program¤ò
> Áö¤é¤»¤Æ¡¢»Ò¥×¥í¥»¥¹¤ÎźÉÕ2¤Îruby¥¹¥¯¥ê¥×¥È¤¬Ê¸»úÎó"ruby"¤ò
> ¼õ¤±¼è¤é¤Ê¤¤¤Î¤Ï¤Ê¤¼¤Ç¤·¤ç¤¦¡©

¤¢¤ì¤Þ¡¢ÅºÉÕ2¤Îruby¥¹¥¯¥ê¥×¥È¤òÉÕ¤±¤ë¤Î¤ò˺¤ì¤Æ¤â¡¼¤¿¡£

-- 
¿ÍÀ¸¤òÇØÉ餤Åꤲ

µÆÃ« À¿(Kikutani Makoto)  kikutani / eis.or.jp hgf03701 / niftyserve.or.jp
                          http://www.eis.or.jp/muse/kikutani/

--r8t48UFsdbeI+Vmv
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ipc0.rb"

#!/usr/bin/ruby
channel  RGV.shift
printf($stderr, "ipc0.rb: channel  d\n", channel)
port  O.new(channel, "r+")

i  ort.read(4)
  
i.each_byte {|byte|
  printf($stderr,  "ipc0.rb: int byte  x\n", byte)
}

port.write("OK")

s  ort.read(4)
printf($stderr,  "ipc0.rb: str  c\n", s)

port.write("OK")


--r8t48UFsdbeI+Vmv--