ZeroConfig for NamedPipe server

Is it doable to set up zero config for NamedPipe server? Any heads up?

Thank you.

Hi,

You can setup HTTP server for ZeroConf and it will return ServerID of NamePipe server.

Should I use xxxxxx_rosdk_.tcp, or else?

yep, you should.
pls review the Bonjour Discovery sample. it uses _bonjourdiscoverableservice_rosdk._tcp..
also the Mega Demo sample uses _MegaDemoService_rosdk._tcp.

I am confused.

How exactly to retrieve the “ServerID” of NamePipe server?

  • You can setup HTTP server for ZeroConf and it will return ServerID of NamePipe server.

add a new custom method, like

function GetServerID: String;

you can call this method from http server

Add a new custome method to which class? At server side ?

How to get the server ID using ZeroConfBrowser at client side?

you should add a new method to your service, i.e. into _Impl.

on server side, after you will receive ip address for your http zeroconf service, you should ask this http server for ServerID of the NamedPipe service.

review the Bonjour Discovery sample and his function WhoAreYou: String; method. it does the same, but in your case, it should return ServerID of the NamedPipe service.

Thank you very much!