Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21956

"heartbeat" approach

Newsgroups comp.lang.java.programmer
Date 2013-02-01 08:11 -0800
Message-ID <0e900395-a38a-44a1-a5bf-01cc781c8728@googlegroups.com> (permalink)
Subject "heartbeat" approach
From bob smith <bob@coolfone.comze.com>

Show all headers | View raw


What is the best way to handle a situation where you want a socket to send a "heartbeat" every ten minutes?  I was thinking it would be simple to have a single thread do all the "heartbeat" sending.

However, that means there could be multiple threads writing to one socket.  Do I need to do anything special to have multiple threads writing to one socket?  Is there a better way?

Thanks.

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

"heartbeat" approach bob smith <bob@coolfone.comze.com> - 2013-02-01 08:11 -0800
  Re: "heartbeat" approach Knute Johnson <nospam@knutejohnson.com> - 2013-02-01 08:40 -0800
  Re: "heartbeat" approach Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:46 -0500
    Re: "heartbeat" approach Robert Klemme <shortcutter@googlemail.com> - 2013-02-02 00:13 +0100
      Re: "heartbeat" approach Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 18:21 -0500
      Re: "heartbeat" approach Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-03 06:51 -0400
  Re: "heartbeat" approach Roedy Green <see_website@mindprod.com.invalid> - 2013-02-01 15:20 -0800

csiph-web