From: matz@... (Yukihiro Matsumoto) Date: 2001-04-20T10:42:02+09:00 Subject: [ruby-talk:13908] Re: Sockets-- using readlines versus gets Hi, In message "[ruby-talk:13906] Re: Sockets-- using readlines versus gets" on 01/04/20, "Norman Makoto Su" writes: |> readlines read everything until the end of file. In this case, client | |So, even if I do manually use the sockets's send method to send an EOF |character (C-D or C-Z), the server will just wait forever? Is the meaning |of end of file different for a socket? on UNIX, C-d (004)and C-z (032) are mere data. EOF is caused only by closing (or shutting down) a file descriptor. matz.