-
Notifications
You must be signed in to change notification settings - Fork 22
add listening-p function #33
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
base: master
Are you sure you want to change the base?
add listening-p function #33
Conversation
val314159
commented
Apr 16, 2021
- adds in listening-p function
- fix typo in demo code
joaotavora
left a comment
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.
Thanks. It's a good idea but please keep the comment inside the helper function you introduced.
| (defun control-frame-p (opcode) | ||
| (plusp (logand #x8 opcode))) | ||
|
|
||
| (defun listening-p (acceptor) |
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.
The comment that I had written above still applies here. We're still using an implementation detail. So please copy the comment here.
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.
I stuck a documentation string in here. does that work?
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.
Not really. Docstrings are about the external interface of a function. They whould exist and in this case should be.
Tell if the server ACCEPTOR is in a listening state.
Or
Return non-nil if server ACCEPTOR in listening state.
This is really a FIXME comment.
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.
how about that? (or maybe you want it at the end of the DEFUN line or the line after?)
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.
added in the DOCSTRING as well
0204117 to
3318ba1
Compare
change incorrect DOCSTRING to a comment
added proper DOCSTRING as suggested
|
|
Let's add |