Skip to content

Fix for issue #1#2

Closed
izstas wants to merge 2 commits into
Chicken-Bones:masterfrom
izstas:null-nethandler-2
Closed

Fix for issue #1#2
izstas wants to merge 2 commits into
Chicken-Bones:masterfrom
izstas:null-nethandler-2

Conversation

@izstas
Copy link
Copy Markdown

@izstas izstas commented Aug 4, 2013

As you suggested, I used IConnectionHandler to get NetClientHandler. I agree that this way is much better.

By the way, I think server part has similar problem. However, in that case, only NetLoginHandler exists before log in, and IServerPacketHandler.handlePacket signature needs NetServerHandler. So I don't know.

@Chicken-Bones
Copy link
Copy Markdown
Owner

Write a test case mod for the server side like you did for the client. Well done on that by the way.

@Chicken-Bones
Copy link
Copy Markdown
Owner

Could the IConnectionHandler be moved to a more global scope to reduce the number of IConnectionHandler instances?

@izstas
Copy link
Copy Markdown
Author

izstas commented Aug 4, 2013

Something like this, maybe?

@Chicken-Bones
Copy link
Copy Markdown
Owner

A new handler section would need to be made for login packets. I don't really think it's worth it though. I'm yet to have a usecase and one could just handle the 250 stream themselves.

@Chicken-Bones
Copy link
Copy Markdown
Owner

Fixed as of 7f42cd9

@izstas izstas deleted the null-nethandler-2 branch August 5, 2013 19:52
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