Felipe Navas wrote:
> I'm using the TCPSocket.send, TCPSocket.gets and TCPSocket.gets to
> make communication between a ruby script and a C program in Linux. I'm
> experiencing some troubles with synchronization and lag.
> There is no problem with the C program; it's working fine.
> 
> There is any buffer in TCPSocket when communicating via 127.0.0.1?
> Where I can read anything about this ?

You might want to be using TCPSocket#recv instead of #gets. IIRC, the 
latter adds a layer of buffering.

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407