Skip to content

Integrating with gopacket #307

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

Closed
shabbyrobe opened this issue Dec 3, 2017 · 5 comments
Closed

Integrating with gopacket #307

shabbyrobe opened this issue Dec 3, 2017 · 5 comments

Comments

@shabbyrobe
Copy link

I haven't found a good way to assemble websocket streams using gopacket and gorilla. I could be missing something obvious, but I haven't found a way to get access to gorilla's reader in a way that can integrate with gopacket's TCPAssembly without resorting to hacks.

My disgraceful stopgap has been to simply copypasta in a whole bunch of gorilla's unexported types:

-flateReadWrapper : struct
-netError : struct
-wsConn : struct
-wsMessageReader : struct

My stopgap is working well enough for our project for now (apart from a few minor bugs), but I think it'd be great to get enough of the current unexported API exported to help integrating with gopacket. The pieces are all there, I'm not 100% sure what those pieces are but I'm happy to help work that out if this is something the project would consider.

@elithrar
Copy link
Contributor

elithrar commented Dec 3, 2017 via email

@shabbyrobe
Copy link
Author

Absolutely, it will take a bit of time to cook something minimal up that is disentangled from our own app; I just wanted to gauge interest before I went to the effort :)

@elithrar
Copy link
Contributor

elithrar commented Dec 3, 2017 via email

@shabbyrobe
Copy link
Author

Time has really gotten away from me on this one. I'm still keen to prepare that example though, it just might take a little longer than I had hoped.

@garyburd
Copy link
Contributor

Closing because there's no response from OP in months.

@gorilla gorilla locked and limited conversation to collaborators Apr 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants