< Previous by Date Date Index Next by Date >
  Thread Index  

Enable keepalive


hi,


"To enable keep alive messages you need to call:"
auto_prt<KeepAliveManager> keepAlive(new KeepAliveManager);
 dum->setKeepAliveManager(keepAlive); 
 dum->getMasterProfile()->setKeepAliveTimeForDatagram(30);
 dum->getMasterProfile()->setKeepAliveTimeForStream(30);

I want to enable the keepalive,  where do i have to put the above codes?

thank you in advance..