×

Discussion Board

Results 1 to 4 of 4

Thread: End of file...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    36

    End of file...

    Hi All,

    I am sending multiple files over the network.
    At the reciever end I need to know when one file ends so that I can create new file.

    What do I need to do for that ?

    Regards

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: End of file...

    Obviously this is not a matter of programming, but a matter of defining the protocol. If you are sending multiple files, you probably send their name. And if you send their name in some kind of header, you may also include file size in that header...

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    36

    Re: End of file...

    thanks for the reply....right now I am not sending the file name.

    At the reciever end I am dynamically creating new files with names like new1,new2...etc. The problem is that I dont know when to create the new file?

    Thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: End of file...

    That is a matter of taste:
    - you can still introduce a header, simply sending filesize
    - or you can introduce some special separator pattern, which normally does not occur in your files (like in HTTP 'multipart').

Similar Threads

  1. PED and signing.
    By IX in forum Symbian
    Replies: 11
    Last Post: 2008-04-21, 01:15
  2. File corrupted - with signed sis
    By annehj in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2007-12-10, 13:44
  3. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  4. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  5. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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