Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.parse() interface #1

Closed
marco-buttu opened this issue Jul 7, 2017 · 2 comments
Closed

System.parse() interface #1

marco-buttu opened this issue Jul 7, 2017 · 2 comments
Assignees
Labels

Comments

@marco-buttu
Copy link
Member

marco-buttu commented Jul 7, 2017

The System.parse() method takes a byte (string of one character, in Python 2) as argument and returns:

  • False when the byte is not the header and it is still waiting for the header
  • True when it has already got the header and it is composing the message
  • the reponse, a non empty string, when there is a response to send back to the client

If the system has nothing to send to the client, as in the case of brodcast requests, System.parse() should return True.

It eventually raises a ValueError in case there is an unexpected error (not considered by the protocol).

@giuseppe-carboni
Copy link
Member

ValueError now is raised only in case of unknown protocol command. Still looking for additional events.

@marco-buttu
Copy link
Member Author

The requirement is now implemented in the server. The System.parse() has to use this specification.

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

No branches or pull requests

2 participants