ZeroConfig for NamedPipe server


(wuping) #1

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

Thank you.


(EvgenyK) #2

Hi,

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


(wuping) #3

Should I use xxxxxx_rosdk_.tcp, or else?


(EvgenyK) #4

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


(wuping) #5

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.

(EvgenyK) #6

add a new custom method, like

function GetServerID: String;

you can call this method from http server


(wuping) #7

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

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


(EvgenyK) #8

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.


(wuping) #9

Thank you very much!