Hi everyone,
I am new to network programming and POCO and I ran into a bit of a problem.
I got the networking working for single packets, but I am having difficulty dealing with a large number of packets in quick succession.
I send 100 packets from my client to the server as a test. On the server side, only every second packet or so gets handled properly. Closer investigation revealed that all packets are in the pipe, but I do not know how to get 1 packet out of the pipe to process it. I can see there are x waiting bytes, but how do I get y bytes from it? The major problem is that I don't know the size of the packets as these can be variable. I first need to read the bytes from the pipe to see the the size of the packets so I can see how much to read, therefore I have a chicken and egg situation.
Is there a way I can peak at the contents of socket.available without using socket.receiveBytes?





