Click to See Complete Forum and Search --> : plz help


mohsher66
March 3rd, 2008, 01:35 PM
hi
im using socket to send text and file to other pc ...the sending is ok ,i mean i make choice for senf text or file...so how can i do in recieve side to know the data received is text or file???

eg.
if (data ==text)
do
else
...

Mukesh_VC
March 4th, 2008, 01:28 AM
Send an extra Flag bit with your data for File and Text.
and check on recieved side as:

if(Flag)
{
do File Processing
}
else
{
do Text Processing
}