Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by tye (Sage)
on Oct 17, 2002 at 15:17 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found