Categorygithub.com/phques/mppq
modulepackage
0.1.0
Repository: https://github.com/phques/mppq.git
Documentation: pkg.go.dev

# README

// marcoPoloPQ project
// Copyright 2014 Philippe Quesnel
// Licensed under the Academic Free License version 3.0

repos to hold work in progress,
yet another, very basic 'marco polo' / service discovery
and some JSONRPC tests

Goal is to use multicast UDP,
even though currently (March 2014), my Windows platform (Win8.1) has probs with this !?
Probably will need to support broadcast UDP for this

Also considered 'borrowing' techniques from SLP .. ?

Using addresses:

RFC 2365 - Administratively Scoped IP Multicast

The IPv4 Local Scope -- 239.255.0.0/16
(??The IPv4 Organization Local Scope -- 239.192.0.0/14)

Picked port 1440 (not listed in wikipedia well know ports)
(-> eicon-SLP ?)

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Get preferred outbound ip of this machine.
Validate MppqResponse, based on header / mppqResponseHeader.
Create a service definition using local hostname and local IP.
Create a MppqResponse, with header set to correct value.
Create a new MppqServer.
Create a service definition.
Create a MppqQuery, with the query's correct values.
QueryServiceDefs sends a MppqQuery to get service definitions from all mppq servers nbTries: number of tries (1 second timeout each).

# Structs

MppqQuery defines the mppq query (cf NewStdMppqQuery).
MppqResponse defines the mppq response.
MppqServer implements a mppq server.
ServiceDef describes a service the provider offers.