Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.46 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.46 KB

mdns4Delphi

This project implements helper objects for doing DNS-SD in Delphi and Lazarus / Free Pascal applications. This should help developers to more easily create applications that can find counter parts in the local network (and maybe enable them to provide features that are similar to cloud features).

On Windows services can be found and registered. On Android services can be found only.

The Delphi-FMX-Browser directory contains an example on how to do service discovery.

Service Discovery

Currently this project can do service discovery on Windows and Android. Android support only works on Delphi.

Registering a Service

For now services can only be registered on Windows. A Linux implementation might follow.

Units in this project

  • mdnsCore.pas contains some shared data types and structures.
  • mdnsResolver.pas is a proxy unit that imports mdnsResolverDelphiAndroid or mdnsResolverWindows depending on the current compiler architecture.
  • mdnsResolverDelphiAndroid.pas implements a resolver for Delphi on Android. In most cases one will want to use the mdnsResolver unit instead.
  • mdnsResolverWindows.pas implements a resolver for Windows that can be used with Delphi and Lazarus / Free Pascal. In most cases one will want to use the mdnsResolver unit instead.
  • mdnsService.pas implements a service registration object for Windows that can be used with Delphi and Lazarus / Free Pascal
  • windns.pas contains some header translations for Windows.