springtg / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

NatIntroduction is not received #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to server with 2 clients (make connection using connect)
2. Send NatIntroduction from server (using NetPeer.Introduce)

Warning is raised on clients: Received unhandled library message 
NatIntroduction.

I've debug your code a little and it seems because NatIntroduction comes from 
server and server is known, this "if":

if (sender != null)
    sender.ReceivedLibraryMessage(tp, ptr, payloadByteLength);
else
    ReceivedUnconnectedLibraryMessage(receiveTime, ipsender, tp, ptr, payloadByteLength);

goes to "sender.ReceivedLibraryMessage(tp, ptr, payloadByteLength);", where 
NatIntroduction is not handled

Original issue reported on code.google.com by Pik...@gmail.com on 6 Aug 2012 at 8:08

GoogleCodeExporter commented 9 years ago
Odd situation, but now handled in revision 323

Original comment by lidg...@gmail.com on 29 Oct 2012 at 4:02