Closed iamkisly closed 5 years ago
Fixed in 3.0.4
I looked at the contents of version 3.0.5 and how you fixed it says that the code was not even checked in action.
At this point, the pool has already been allocated! And calling SetUdpSender is useless. You had to add IUdpSocketSender to the constructor, and call SetUdpSender before udpSenderObjectPool was filled.
https://github.com/MarkioE/Networker/blob/cd73d2ad78a19a341ede0579e1af858a61daff23/Networker/Server/ServerPacketProcessor.cs#L48
The use of Udp is possible only at the reception, since at this moment _socketSender is null and cannot be specified yet. Since SetUdpSender is never called, sending Udp packets is not possible.