Re: Timeouts?
"Huston" <[email protected]> Wed, 2 Apr 2003 08:56:17 -0700
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <003601c2f930$653d5560$0201000a@gummy> |
Timeouts?The wait period is not configurable with the Reply class but you could implement one that is by implementing your own ReplyListener. The idea is that unless the connection under the session times out there will be a reply at some point in the future. If the connection times out then an exception should be thrown. --Huston ----- Original Message ----- From: Andrew Keedle To: '[email protected]' Sent: Wednesday, April 02, 2003 4:20 AM Subject: [Beepcore-java-users] Timeouts? How do I specify timeouts? I have a piece of code that does a sendMSG and then does a getNextReply(). If the other end never responds then this stalls forever. Is the wait period configurable? Reply reply = new Reply(); device.sendMSG(getDataStream(msgTX), reply); Message msg = reply.getNextReply();