From: "Kontra, Gergely" Date: 2002-05-03T00:46:16+09:00 Subject: Re: Sockets problem Azt irtad, hogy >Matthew PATTISON wrote: >[...] >> e.g. Ruby seems to wait a long time before gets() returns, even when there's >> stuff waiting on the socket. I've tried setting $/ = "\r\f" but that didn't >> work - my script just hung. Any ideas? Is $/ the right variable to >> set so that socket.gets will look for a different line separator? > >Hm, AFAIK Windows uses \r\n. Maybe that will work as $/ What if I don't know, that connections are from mac, unix or windows? Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net