Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Zeroconf support for headless server #648

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

dbrenden
Copy link

Allow flask server to broadcast over public ip. Use Zeroconf protocol to publish the service (using avahi), allowing any client with Zeroconf to search and connect to any Freeseer client on their network.

@dideler dideler added this to the 2014 Fall - UCOSP milestone Nov 11, 2014
@mtomwing
Copy link
Member

How about also adding a basic CLI command for scanning for Freeseer servers?

@dbrenden dbrenden force-pushed the broadcast branch 2 times, most recently from 69fd00c to a044d69 Compare November 28, 2014 23:45
def setup_parser_discover(subparsers):
"""Setup discover command parser"""
parsers = subparsers.add_parser('discover', help='Search for freeseer servers on the network')
parsers.add_argument("-t", "--timeout", help="Poll for freeseer servers continually", action="store")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the default action is 'store', and you can avoid int(...) later on by setting type=int. Furthermore I think argparse will also automatically add '-t' if it sees '--timeout'.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to explicitly declare '-t' for it to be a command line option.

@mtomwing
Copy link
Member

Why don't you move this stuff into its own submodule folder? It seems weird having it mixed with the rest of the API stuff, especially since you have it separated into announcer.py and listener.py.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants