Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: How do I make a tcp socket heartbeat?

by haukex (Archbishop)
on Oct 09, 2020 at 17:05 UTC ( [id://11122636]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do I make a tcp socket heartbeat?
in thread How do I make a tcp socket heartbeat?

I used IO :: Socket because I found the most examples out there, but I found it very difficult to understand how everything works with it.

Yes, the select(2) system call is (one of) the classic ways to do it. "Classic" both in the good and bad sense: good because understanding it will help you understand how lots of servers work and how things work on a lower level, not so good because nowadays I'd consider it fairly low level, so for just getting stuff done, as I said IMHO event loops are a good approach.

  • Comment on Re^3: How do I make a tcp socket heartbeat?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found