in reply to Interactive simple client server

G'day rogermante,

Welcome to the monastery.

perlipc has a lot of information on this subject. In particular, the Sockets: Client/Server Communication section.

-- Ken

Replies are listed 'Best First'.
Re^2: Interactive simple client server
by rogermante (Initiate) on Jul 05, 2013 at 11:02 UTC

    Thanks, I went through a lot of it, but couldn't find any reason why the above didn't work.

    Anyway, after spending few hours with this not going anywhere, I decided to create an account and post the question, and just typical, soon after I found the solution:

    <$socket> only returns after a complete line is received, which is to say when newline is received. sysread will return as soon as data is available

    so I've just tried that if I add newline (0x0A) to the reply or even better, use sysread instead, everything is fine (d'huh!)

    I'll see about the timeout next :-)