aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes heartbeat messages help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "heartbeat messages help" Watch "heartbeat messages help" New topic
Author

heartbeat messages help

Sree Nivas
Ranch Hand

Joined: Jul 24, 2003
Posts: 95
Hi,

Can anyone help me in solving the folloiwng queries in java socket. I need these 2 to be coded immediately.

1. Sample code to send heartbeat message from client to server.

2. How to make sure that client can receive any type of data from server? Here we are writing tcp client program, but don't know what type of it will receive from the server. So client must in a position to receive any type of data from server.

Pl help.

regards
Sree
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Let's dig a little deeper ...

What have you tried or thought of doing so far?

What kind of protocol does your client server communication use?

What is the purpose of the heartbeat? What happens if it stops beating?

How does the client receive data from the server? In response to a request?

If the server hands you some data what would you like it to look like? How are you going to figure out what it is?

What are you going to do with it?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: heartbeat messages help
 
Similar Threads
Clustering + load balancing ?
Thread on Socket?
In what case Socket will get NULL request?
RMI Advantages / Disadvantages
Weblogic: Peer unreachable for 240 seconds