In the program I'm writing I'm not receiving OutSim or OutGuage packets, although I am receiving InSim packets correctly. To make matters more confusing, at one point I was using a different method of connecting UDP sockets and was receiving OutSim and OutGauge packets. I think the problem may lie in a technicality with the new method.
Here is a blind question, that perhaps only Scawen can answer: Does LFS send all InSim, OutSim and OutGauge packets from the same port on the server?
A little more info for the curious: I'm writing the code in Java. Initially I was using the DatagramSocket and DatagramPacket classes from the java.net package. I switched to using a DatagramChannel from the java.nio.channels package because of the cleaner architecure and the speed. To use the DatagramChannel, it has to be bound to an address on the server side, where "address" means "IP address and port number". It will only accept datagrams from the address it's bound to. So, my belief is that if a datagram comes from a different port on the same machine it won't be accepted. If that's the case, and LFS is sending using different ports, I need to rethink things. I would use something like Ethereal to sniff packets, but it doesn't see packets on the loopback address because Windows shortcuts that special case and doesn't go through the network stack Anyway, thanks for any help!
--
Rob
Here is a blind question, that perhaps only Scawen can answer: Does LFS send all InSim, OutSim and OutGauge packets from the same port on the server?
A little more info for the curious: I'm writing the code in Java. Initially I was using the DatagramSocket and DatagramPacket classes from the java.net package. I switched to using a DatagramChannel from the java.nio.channels package because of the cleaner architecure and the speed. To use the DatagramChannel, it has to be bound to an address on the server side, where "address" means "IP address and port number". It will only accept datagrams from the address it's bound to. So, my belief is that if a datagram comes from a different port on the same machine it won't be accepted. If that's the case, and LFS is sending using different ports, I need to rethink things. I would use something like Ethereal to sniff packets, but it doesn't see packets on the loopback address because Windows shortcuts that special case and doesn't go through the network stack Anyway, thanks for any help!
--
Rob