In the previous recipe, we used the
BonjourPublishServices classes to create an echo server and to publish it. In this recipe, we will be using
BonjourResolverService to find the echo server and to connect to it.
The downloadable code for this chapter contains a
BonjourEchoClient project that will search for servers published by the
BonjourEchoServer project, which was covered in the Creating an echo server that uses Bonjour to advertise the service recipe, and then we will send a text string to the server. The server should respond back with the same string that we sent.
If the client is unable to find any published echo ...