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

Non block example #79

Closed
wants to merge 3 commits into from
Closed

Conversation

lrbalt
Copy link
Contributor

@lrbalt lrbalt commented Jul 29, 2017

this is an example of using non blocking capture using the selectable fd of the capture device. It uses tokio to poll for new packets.

I'm not sure if the example is good enough for you. I could not get it to work to pass the captured packet into the reactor because of lifetime problems. I needed to create a owned copy to pass to the handler. Also this adds dependencies to tokio and mio for the example.

@lrbalt
Copy link
Contributor Author

lrbalt commented Jul 29, 2017

Sorry, I completely missed PR #76.

@Roxxik
Copy link
Contributor

Roxxik commented Jul 30, 2017

the other PR is still stuck in travis, maybe you wanna have a look at it and send a PR for the PR ;)

@lrbalt
Copy link
Contributor Author

lrbalt commented Jul 30, 2017

failure is because clippy cannot be compiled on current nightly

@lrbalt
Copy link
Contributor Author

lrbalt commented Aug 5, 2017

Closing because #76 was merged

@lrbalt lrbalt closed this Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants