Deniz Dogan wrote: > The problem is > that I use a receive buffer at 512 bytes and sometimes the rows get > "split" like this: That's indeed the problem IMHO which is why I suggest you solve that instead. You can use gets("\r\n") to get one full message at a time. Regards Stefan -- Posted via http://www.ruby-forum.com/.