Your server program is using readLine(), which will block until a
newline is received. The server code does not write a newline, so it is
waiting at recv() for data from the server, and the server is still
waiting for a newline. If you change the client to do the following, it
should work:
s
[EMAIL PROTECTED] wrote:
> I have a problem with reading from a Java server after I have
> written to it - it just hangs. It works fine if I just write to
> the server and not try to write.
Excuse me?
> I have read the HOWTO on sockets - and it states that there is a
> problem (something about f
It's a socket interface it should be universal!
On Nov 27, 2007 4:08 PM, <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem with reading from a Java server after I have written
> to it - it just hangs. It works fine if I just write to the server and
> not try to write. I have read the HOWT
On Nov 27, 4:29 pm, hdante <[EMAIL PROTECTED]> wrote:
> On Nov 27, 1:08 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi all,
>
> > I have a problem with reading from a Java server after I have written
> > to it - it just hangs. It works fine if I just write to the server and
> > not try to write. I have
On Nov 27, 4:21 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Tue, 27 Nov 2007 07:08:04 -0800 (PST), [EMAIL PROTECTED] wrote:
> >Hi all,
>
> >I have a problem with reading from a Java server after I have written
> >to it - it just hangs. It works fine if I just write to the server and
> >
On Nov 27, 1:08 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I have a problem with reading from a Java server after I have written
> to it - it just hangs. It works fine if I just write to the server and
> not try to write. I have read the HOWTO on sockets - and it states
> that there is a problem (s
On Tue, 27 Nov 2007 07:08:04 -0800 (PST), [EMAIL PROTECTED] wrote:
>Hi all,
>
>I have a problem with reading from a Java server after I have written
>to it - it just hangs. It works fine if I just write to the server and
>not try to write. I have read the HOWTO on sockets - and it states
>that ther
Hi all,
I have a problem with reading from a Java server after I have written
to it - it just hangs. It works fine if I just write to the server and
not try to write. I have read the HOWTO on sockets - and it states
that there is a problem (something about flushing), but not what the
solutions is.