Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@eile
Copy link
Contributor

@eile eile commented May 12, 2017

No description provided.

@eile eile force-pushed the httpzeroconf branch 2 times, most recently from ab9064e to c9cf1da Compare May 15, 2017 07:31
result.getString()));
}

if (uri_.getHost() != uri.getHost() || uri_.getPort() == 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be printed independently of the servus stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is, unless Zeroconf announcement fails in which case the ctor throws anyways.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correction, it isn't. Fixing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

const std::string JSON_TYPE = "application/json";
const std::string REQUEST_REGISTRY = "registry";
const std::string REQUEST_SCHEMA = "schema";
const std::string HTTP_SERVER_SERVICE = "_http._tcp";
Copy link
Contributor

Choose a reason for hiding this comment

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

_zeroeqhttp._tcp? otherwise it looks very generic.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, add some documentation in the header of the class that this features exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I on purpose used the generic service for HTTP servers.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah ok. Then mention it for future reference :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doc added

@eile eile force-pushed the httpzeroconf branch 3 times, most recently from 6416fa5 to 347ffc4 Compare May 15, 2017 12:00
@dnachbaur
Copy link
Contributor

+1 for me. @hernando also should a have look

Copy link

@hernando hernando left a comment

Choose a reason for hiding this comment

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

Explain a bit more the motivation in the commit message.

if (!result)
{
ZEROEQTHROW(std::runtime_error("Zeroconf announce failed: " +
result.getString()));

Choose a reason for hiding this comment

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

Do you really want to throw if the announcement fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is C&P from the Publisher, I guess so?

Currently used by the viztools.Local() python module, but generally of
interest for REST clients to find our apps.
@eile
Copy link
Contributor Author

eile commented May 15, 2017

Explain a bit more the motivation in the commit message.

Done

@eile eile merged commit ceaa540 into HBPVIS:master May 16, 2017
@eile eile deleted the httpzeroconf branch May 16, 2017 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants