Looping task for ServerBaseEventHandler

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

ducbot
Posts: 6
Joined: 23 Apr 2018, 09:16

Looping task for ServerBaseEventHandler

Postby ducbot » 22 May 2018, 08:55

Hi SmartFoxServer Team,

I would like to process a task continuously in ServerBaseEventHandler (USER_LOGIN)

Could you advise how to implement it to have a good performance and able to manage the SmartFox thread.

Hope to hear from you soon :wink:
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Looping task for ServerBaseEventHandler

Postby Lapo » 22 May 2018, 12:35

Hi,
you can use the Task scheduler.
See here for the details:
https://smartfoxserver.com/blog/how-to- ... extension/

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
ducbot
Posts: 6
Joined: 23 Apr 2018, 09:16

Re: Looping task for ServerBaseEventHandler

Postby ducbot » 23 May 2018, 14:12

Thank you for your advise Lapo.

I will note that for my task.

Thanks again.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 49 guests