More of the same weirdness, but in logs format. This is the server log output. The client sees almost nothing wrong in this particular capture, with only one received malformed packet so I didn’t post the client log output. Each time I run this it’s different, which makes me wonder if it’s a threading thing since kNet uses different included threading files depending on the OS.
[Fri Dec 12 17:39:06 2014] WARNING: Starting Server()
[Fri Dec 12 17:39:06 2014] INFO: Started server on port 2345
41.056: recvfrom (8) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.0561: Received a datagram of size 8 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
[Fri Dec 12 17:39:10 2014] WARNING: NewConnectionEstablished(): sending event E_CLIENTCONNECTED to client
[Fri Dec 12 17:39:10 2014] INFO: Client 127.0.0.1:54541 connected
41.0643: MessageConnection::EndAndQueueMessage: Queued message of size 2 bytes and ID 0xA.
[Fri Dec 12 17:39:10 2014] DEBUG: Loading resource Models/Sphere.mdl
[Fri Dec 12 17:39:10 2014] DEBUG: Loading resource Materials/StoneSmall.xml
41.0649: MessageConnection::EndAndQueueMessage: Queued message of size 1 bytes and ID 0x1.
41.0837: MessageConnection::EndAndQueueMessage: Queued message of size 14 bytes and ID 0x14.
41.0854: Socket::EndSend: Sent out 37 bytes to socket 127.0.0.1:54541 (UDP Slave, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf88e59580).
41.0859: recvfrom (11) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.086: Received a datagram of size 11 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
41.086: Received a fragment of size 2b (index 1) for a transfer with ID 2, but that transfer had not been initiated!
41.0861: Malformed UDP packet! Byteofs 11, Packet length 11. Expected 514 bytes of message content, but only 0 bytes left!
41.0861: kNet::NetException thrown when processing UpdateConnection() for client connection: Malformed UDP packet received! Message payload missing.
41.0972: Received a fragment of size 2b (index 1) for a transfer with ID 2, but that transfer had not been initiated!
41.0973: Malformed UDP packet! Byteofs 11, Packet length 11. Expected 514 bytes of message content, but only 0 bytes left!
41.0973: kNet::NetException thrown when processing UpdateConnection() for client connection: Malformed UDP packet received! Message payload missing.
41.0974: recvfrom (50) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.0974: Received a datagram of size 50 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
41.0974: Received a fragment of size 2b (index 1) for a transfer with ID 2, but that transfer had not been initiated!
41.0975: Malformed UDP packet! Byteofs 11, Packet length 11. Expected 514 bytes of message content, but only 0 bytes left!
41.0975: kNet::NetException thrown when processing UpdateConnection() for client connection: Malformed UDP packet received! Message payload missing.
41.1204: recvfrom (13) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.1204: Received a datagram of size 13 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
[Fri Dec 12 17:39:11 2014] WARNING: ClientDisconnected(): disconnect
[Fri Dec 12 17:39:11 2014] INFO: Client 127.0.0.1:54541 disconnected
41.1485: recvfrom (31) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.1486: Received a datagram of size 31 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
41.157: recvfrom (31) in socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0)
41.1571: Received a datagram of size 31 to socket :0 (UDP server, connected=true, readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345, peer: (-), socket: 6, this: 0x7fdf8b01ece0) from endPoint 127.0.0.1:54541.
[Fri Dec 12 17:39:11 2014] WARNING: NewConnectionEstablished(): sending event E_CLIENTCONNECTED to client
[Fri Dec 12 17:39:11 2014] INFO: Client 127.0.0.1:54541 connected
41.1633: MessageConnection::EndAndQueueMessage: Queued message of size 2 bytes and ID 0xA.
41.1634: MessageConnection::EndAndQueueMessage: Queued message of size 1 bytes and ID 0x1.
41.169: MessageConnection::EndAndQueueMessage: Queued message of size 14 bytes and ID 0x14.
41.18: NetworkServer::ProcessNewUDPConnectionAttempt: Trying to overwrite an old connection with a new one! Discarding connection attempt datagram!
[Fri Dec 12 17:39:11 2014] WARNING: NewConnectionEstablished(): sending event E_CLIENTCONNECTED to client
[Fri Dec 12 17:39:11 2014] INFO: Client 127.0.0.1:54541 connected