-
Notifications
You must be signed in to change notification settings - Fork 75
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
Export Cython functions into pcap.pxd #66
base: master
Are you sure you want to change the base?
Conversation
- pcap.pxd created in order to permit to others Cython module to use C functions and other Cython structures - pcap.pyx updated in order to remove code moved into pcap.pxd
timeout_ms -- requests for the next packet will return None if the timeout | ||
(in milliseconds) is reached and no packets were received | ||
(Default: no timeout) | ||
immediate -- disable buffering, if possible |
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.
Is it necessary to have the docstring repeated in both the pcap.pyx
and pcap.pxd
file?
__copyright__ = 'Copyright (c) 2004 Dug Song' | ||
__license__ = 'BSD license' | ||
__url__ = 'https://github.com/pynetwork/pypcap' | ||
__version__ = '1.2.0' |
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.
Same here, can we have these be defined in only one of the two places? Otherwise it becomes a bit more painful to keep them in sync, especially when bumping the version.
DLT_PRONET = 4 | ||
DLT_CHAOS = 5 | ||
DLT_IEEE802 = 6 | ||
DLT_ARCNET = 7 |
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.
Should fix the spacing in here.
I have not (yet) Python/Cython code that uses pypcap so I have NOT try my mods on python code which use pypcap (I have only test the compilation process)