how can i get the data type of the incoming data from a winsock control
Printable View
how can i get the data type of the incoming data from a winsock control
I don't think you can by normal means. The easiest way is to tell the receiving end the details before you start sending.
Another way I was thinking was is to check the incoming data against the known type of file headers, but that seems a little out of reach.
Sunny