-
Notifications
You must be signed in to change notification settings - Fork 683
Rework JerryScript transport layer. #2421
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
Rework JerryScript transport layer. #2421
Conversation
35cb30a
to
0f3f57f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, I had just a few comments.
docs/13.DEBUGGER-TRANSPORT.md
Outdated
|
||
**Summary** | ||
|
||
This context represent the current status of processing received data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
represents
jerry-core/api/jerry-debugger.c
Outdated
|
||
if (jerry_debugger_tcp_create (port)) | ||
{ | ||
if (!jerry_debugger_ws_create ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge the if
statements
docs/13.DEBUGGER-TRANSPORT.md
Outdated
layers which can encode/decode or send/receive messages transmitted between | ||
the debugger client and server. | ||
|
||
**Warning** This API is not part of the standard JerryScript API and may change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this comment is unnecessary, because this is not part of the public API. Private functions could be changed anytime (and anywhere) in the whole project.
Introducing jerryscript-debugger-transport.h interface, which allows chaining multiple protocols (e.g. tcp and websocket). JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
0f3f57f
to
5e26b1e
Compare
Thank you for the review. Patch updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Introducing jerryscript-debugger-transport.h interface, which allows chaining multiple protocols (e.g. tcp and websocket).