Re: [Beepcore-java-users] Timeouts?
Status: Beta
Brought to you by:
huston
From: Huston <hu...@us...> - 2003-04-02 15:56:30
|
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 -----=20 From: Andrew Keedle=20 To: 'bee...@li...'=20 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 =3D new Reply();=20 device.sendMSG(getDataStream(msgTX), reply);=20 Message msg =3D reply.getNextReply();=20 |