From: Kevin Waters Date: 2006-07-26T04:34:15+09:00 Subject: Re: bit-struct and constructing ARP messages. Gyoung-Yoon Noh wrote: > You can achieve the goal using Array#pack / String#unpack by > hand. But there are already good libraries supporting C function > calling and type conversion in Ruby: ruby-dl2[1], ruby-dlx[2]. > > [1]: > http://rubyforge.org/cgi-bin/viewvc.cgi/ruby-dl2/doc/struct.txt?revision=1.2&root=ruby-dl2&view=markup > [2]: http://ruby-dlx.rubyforge.org/ > > HTH, Array#pack / Array#unpack is useful for packaging the datagram yes, what I want to know is what Class#method would I use to transmit an ARP message contained in a datagram since it's not going to any TCP port, it's just a broadcast arp message. -- Posted via http://www.ruby-forum.com/.