Skip to main content

How to start a peer service?

1 reply [Last post]
Joined: 2008-10-22

Hi all,
I'm trying to run a custom peer service but I don't know how to start it.
- Is there any way to register it somewhere for it being started automatically? (like group services that are invoked when the peer joins the group)
- Or, do I have to invoke it by calling init method followed by startApp one?

I've gone through Service and customGroupService tutorials but I haven't found the answer there, although they have been really useful solving other problems.

Description of my custom service:
- Implements Service interface.
- Is announced in the peer's PeerAdv Svc field.

Any help would be really appreciated.
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-31

Hi Spiritofnight,

Check code example 700 and following at