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
...
Printable View
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
...
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
}