User Profile

Collapse

Profile Sidebar

Collapse
gvijayaratnam
gvijayaratnam
Last Activity: Feb 21 '08, 06:05 AM
Joined: Feb 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gvijayaratnam
    replied to Read a Huge file and send via SOCKET
    in C
    Yes, the server side also reading it in binary format. Actually I am doing a Class for LPR printing, the client will send PCL formated binary file to a Network printer. So the client cannot read chunk by chunk, it have to read the file whole in one shot and send it chunk by chunk.

    Ganesh...
    See more | Go to post

    Leave a comment:


  • gvijayaratnam
    replied to Desperate help with C++ project
    in C
    Hi,

    Try this way

    #DEFINE C_DELIMETER_COM MA ","

    char *p_szToken = '\0';
    p_szToken = strtok ( m_szSource, C_DELIMETER_COM MA );
    while( p_szToken != NULL )
    {
    // read the values from p_szToken
    p_szToken = strtok( NULL, C_DELIMETER_COM MA );
    }

    I think this might help you

    Ganesh
    See more | Go to post

    Leave a comment:


  • gvijayaratnam
    started a topic Read a Huge file and send via SOCKET
    in C

    Read a Huge file and send via SOCKET

    Hi All,

    I have a fn prototype as follows

    void print ( char *Buffer, usigned long bufferSize, int chunkSize );

    This fn will accept binary file buffer and the buffer size and the chunk
    size, implementation must be open socket and send the buffer in chunks which
    is provided by the parameter.

    My probelm is if I send a txt file the server receives it correctly, but
    when...
    See more | Go to post
No activity results to display
Show More
Working...