Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Socket Handle not sending data ?

by targetsmart (Curate)
on Jul 09, 2009 at 13:09 UTC ( #778562=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Socket Handle not sending data ?
in thread Socket Handle not sending data ?

Lauching a thread everytime to check the availability of the socket connection is not a good idea.
just check defined on socket handle or check eof on socket handle or establish a heart beat mechanism to know the liveliness of the socket/program.
If you show the piece of code which requires efficiency, we would able to tell you what could be the best way of dealing it.


Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.


Comment on Re^3: Socket Handle not sending data ?
Replies are listed 'Best First'.
Re^4: Socket Handle not sending data ?
by evilkamikaze (Initiate) on Jul 09, 2009 at 14:19 UTC

    Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others examining the Monastery: (19)
    As of 2015-07-28 16:47 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (258 votes), past polls