-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Comments
Hi Blake - could you share a little bit more about how you are
calling/using these private APIs - e.g. example code?
…On Sat, Dec 2, 2017 at 6:47 PM Blake Williams ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#307>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABIcNzSrLA5n3_oli3asqrpb7Sd1Jyxks5s8gvKgaJpZM4Qzj9->
.
|
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 :) |
Exposing all of those symbols would add a lot to the API surface (and
provide no gain for many), so understanding how you're using them might
help us see whether there's another [existing] way or whether a hook can be
exposed on the Conn instead.
…On Sat, Dec 2, 2017 at 7:57 PM Blake Williams ***@***.***> wrote:
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 :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABIcL6oD5TgVNipJXC_azX583pqFsDFks5s8hwLgaJpZM4Qzj9->
.
|
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. |
Closing because there's no response from OP in months. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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.
The text was updated successfully, but these errors were encountered: