Look at this example...
SOCKET s;
//you bind and stuff...
//then you recive a paket.
Is there a smart, secure way to get the size of the paket, allocate a
matching buffert and then load the data into it?
How to extract size of a packet?
|