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

Lane Index not exposed to OnMessage callback. No way to check lane #743

Open
shinyclef opened this issue Nov 22, 2023 · 0 comments
Open

Comments

@shinyclef
Copy link

Is your feature request related to a problem? Please describe.
I want to send and receive messages using specified lanes. I need to route my received traffic to a different location based on the lane.
Connection.ConfigureConnectionLanes exists, and Connection.SendMessage has a parameter for the lane. It looks like lanes are intended to be supported. However, the MessageReceived methods of ConnectionManager and SocketManager do not expose the lane index (IdxLane) field of the NetMsg struct despite the data being received correctly.

Describe the solution you'd like
Pass the lane index into the OnMessage callback.

Describe alternatives you've considered
Rolling my own.

Additional context
For my use case. I am using Unity with Netcode for Entities. I am using lane 0 as the default traffic Netcode uses. I am using lane 1 for my own large packet data. I would like to route the traffic based on lane without adding additional message header data. I can deal with this myself if it is indeed an intentional choice.

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

No branches or pull requests

1 participant