Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do I make a tcp socket heartbeat?

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


in reply to How do I make a tcp socket heartbeat?

I just noticed that your previous question from last week was in regards to AnyEvent. Note that it is an event loop framework much like Mojo::IOLoop, so if you're already using one of them, it certainly can't hurt to learn about the others, but for your production code, you probably don't want to mix the two. See AnyEvent::Socket for TCP servers and clients. (Personally I still prefer Mojo, and it can do Websockets too, but TIMTOWTDI.)

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

Replies are listed 'Best First'.
Re^2: How do I make a tcp socket heartbeat?
by pudda (Acolyte) on Oct 13, 2020 at 15:04 UTC

    Hi, thanks for the response!

    In my previous question I was trying to resolve another problem. I had a trouble but with a Websocket, this one it's for a tcp server.

    I saw that AnyEvent can handle TCP connections too, but I've found it more complicated, at least for me, how to understand and use it, I'm actually changing that code to use Mojo too.

    Anyways, thanks for the advice!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found