CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: plz help

  1. #1
    Join Date
    Feb 2008
    Posts
    28

    plz help

    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
    ...

  2. #2
    Join Date
    Feb 2008
    Location
    India
    Posts
    28

    Re: plz help

    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
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured