discovery-svc
Participants in IPSME can be self reporting. But, there sometimes needs to be a way to find these participants before they each can be queried themselves. To satisfy the requirement, a simple discovery service, discovery-svc, has been created, which reports all participants that have registered. More complex registrations and queries would be useful in the future.
registration: 35.187.58.240:8822 (UDP) query: 35.187.58.240:8823 (TCP/IP)
Register With
To register your participant with discovery-svc, a UDP package must be sent to the address: 35.187.58.240:8822. The following repository implements a basic discovery-svc registration. The main() resolves the registration address of the discovery-svc, which was passed as a commandline argument, creates a Registration message and sends the registration off to the service. A receiving loop is entered to received the registration confirmation, including the expiration datetime of the registration.
cpp-discovery-svc-reg |
https://gitlab.com/industry-of-integrations/docker-discovery-svc/cpp-discovery-svc-reg.git |
|---|
Discovery
The discovery service can be queried through TCP/IP at the address: 35.187.58.240:8823. The following repository implements a basic discovery-svc query. The main() resolves the query address of the discovery-svc, which was passed as a commandline argument, creates a Discovery message and sends the query off to the service. The cpp-l4end-framing library is used for TCP/IP framing the Discovery message.
cpp-discovery-svc-query |
https://gitlab.com/industry-of-integrations/docker-discovery-svc/cpp-discovery-svc-query.git |
|---|