-
Notifications
You must be signed in to change notification settings - Fork 1
Large PR - Adapter to C code, demo polling implementation #15
Conversation
src/README.md, line 6 at r1 (raw file):
you are either leaving me hanging or being too clever Comments from Reviewable |
src/tcpinfo_proto_test.cc, line 534 at r1 (raw file):
Couldn't this be a method? Comments from Reviewable |
src/tcpinfo_lib_test.cc, line 20 at r1 (raw file):
:( This is pretty bad. How hard is it to fix? Comments from Reviewable |
src/tcpinfo_lib.cc, line 443 at r1 (raw file):
:( Maybe lambdas can help? Comments from Reviewable |
src/tcpinfo_lib.cc, line 443 at r1 (raw file):
|
src/main.cc, line 70 at r1 (raw file):
This comment doesn't match the code? Comments from Reviewable |
src/main.cc, line 20 at r1 (raw file):
We're in agreement that hardcoding filenames is bad, right? And only okay in the context of a demo application? Comments from Reviewable |
src/tcpinfo_c_adapter.c, line 72 at r1 (raw file):
? Comments from Reviewable |
src/tcpinfo_c_adapter.c, line 46 at r1 (raw file):
Please make this a random number. 123456 is, imo, a worryingly probable input. Or, put another way: https://vine.co/v/hl7Zpzh1979 Comments from Reviewable |
Reviewed 1 of 10 files at r1. Comments from Reviewable |
Review status: 1 of 10 files reviewed at latest revision, 8 unresolved discussions. src/main.cc, line 20 at r1 (raw file):
|
src/tcpinfo_lib_test.cc, line 20 at r1 (raw file):
|
LGTM except for the include-order problem, which if it's not too bad I would strongly prefer fixing. Right now, if I'm right, transitive inclusions are randomly Comments from Reviewable |
Reviewed 1 of 3 files at r2. Comments from Reviewable |
I've made vast improvements to the extern "C" stuff. Main problem was actually a collision with tcpinfo.pb.h declarations of AF_* colliding with socket.h macros. Review status: 2 of 12 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Review status: 2 of 12 files reviewed at latest revision, 1 unresolved discussion. src/tcpinfo_lib_test.cc, line 20 at r1 (raw file):
|
This one has a lot of content, some of it pretty ugly. If you have suggestions for breaking it out into smaller PRs, happy to do so.
I suspect there will be places where I should improve the comments, since I've been pecking at this for about 6 weeks, so parts of it are just in my subconscious now.
This change is