Author Topic: Detecting Disconnect with Platform SDK 7.6  (Read 3909 times)

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Detecting Disconnect with Platform SDK 7.6
« on: August 28, 2009, 12:53:23 PM »
Dear Genesys Programmers and other animals (René!  :P )!!!

I have a problem with EventServerDisconnected - as you all know (or should), from 7.6, EventServerDisconnected is no longer issued by Platform SDK when client disconnects from T-Server. So, can someone please tell me how we are supposed to detect a disconnect from T-Server using Platform SDK? A sample code would be really great!!!

Thanks!
Vic


Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Detecting Disconnect with Platform SDK 7.6
« Reply #1 on: August 30, 2009, 07:38:45 PM »
Dear Victor (aka boss of the band ;)),

I have no sample code for you this time... But you should looks at the events "Opened" and "Closed" of TServerProtocol class (inherited from AbstractChannel class) ;-)

R.

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Detecting Disconnect with Platform SDK 7.6
« Reply #2 on: August 31, 2009, 08:12:00 AM »
Dear Band Member with awesome shiny guitar and cool boots and Mohawk in a shape of "G"!

I have been trying to use EventBlock, but as you have probably noticed, it does not provide access to this. At least, I don't see it! I will try again and will inform you how it went!

Vic

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: Detecting Disconnect with Platform SDK 7.6
« Reply #3 on: September 14, 2009, 11:06:58 AM »
Rene,

it is not working :(

Can anyone help?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Detecting Disconnect with Platform SDK 7.6
« Reply #4 on: September 14, 2009, 12:47:47 PM »
Vic,

I've tested that before posting here and it worked! Are you using any application blocks from Genesys? Are you using ADDP? Did I understand you correctly that you're trying to detect lost (dropped) connection to T-Server on agent application's side?

R.