http://qs321.pair.com?node_id=206049


in reply to Re: Socket: I don't get what is sent
in thread Socket: I don't get what is sent

$|++; # <-- Turns on automatic flusing after each write... No! That turns on automatic flushing after each write to STDOUT. Do one of the following:

select( ( select(SOCK), $|++ )[0] ); # or use IO::Handle; SOCK->autoflush(1);
Though I'm surprised that sockets don't default to being unbuffered.

        - tye (but my friends ca)

Replies are listed 'Best First'.
Re: (tye)Re: Socket: I don't get what is sent
by JaWi (Hermit) on Oct 17, 2002 at 15:34 UTC
    Your right, the socket handle has to be unbuffered: however, this has to happen at server side and not client side...
    Funny however that the example in the perlipc doesn't mention this...

    -- JaWi

    "A chicken is an egg's way of producing more eggs."