Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

(tye)Re: Socket: I don't get what is sent

by tye (Sage)
on Oct 17, 2002 at 15:17 UTC ( #206049=note: print w/replies, xml ) Need Help??

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."

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://206049]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2022-09-27 11:47 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (119 votes). Check out past polls.