CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: theanonymous

Search: Search took 0.02 seconds.

  1. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    Thanks for ur replies. I have fount that it is most probably a scheduling problem in the embedded linux i am using.
  2. Replies
    2
    Views
    1,588

    Re: Concurrent recv() calls

    And can a call to recv() cause Segmentation fault ??
  3. Replies
    2
    Views
    1,588

    Concurrent recv() calls

    Hello Everybody

    Is there any problem in calling recv() concurrently in different threads ?
    I mean is recv() is thread safe ?

    Thanks
  4. Replies
    10
    Views
    986

    Re: Passing string by pointer

    OK thanks a lot for ur replies.
  5. Replies
    10
    Views
    986

    Re: Passing string by pointer

    In the use of the function:
    std::string ss = "";
    void Dummy( &ss );

    There is no memory allocation for the string ss before sending its pointer to the function, while the function put data in the...
  6. Replies
    10
    Views
    986

    Passing string by pointer

    Hello All
    Is there a problem in memory allocation in the following code ?




    std::string ss = "";
    void Dummy( &ss );
    cout << ss << endl;
  7. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    I have noticed strange behavior in the code.

    Brief of what server/client do:
    - server runs a blocking recv().
    - when client has a request, it packs the request into a string, sends the length of...
  8. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    Each thread uses different socket identifier s_.
    So select() in different threads is called on different sockets.

    I use this receive function in the client in nonblocking mode with a timeout of 2...
  9. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    Thanks for all who replied.
    Here is my receive function:

    Please review it and tell me if there is something wrong.
    Note that this function is used by many concurrent threads.
    I have a question:...
  10. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    Idetect the recv() timeout using the function select(). I put the receiving socket into the read set of the select() and pass the time out to the select() function. Then I check the return value of...
  11. Replies
    15
    Views
    14,592

    Re: C++ Server/Client application

    It returns 0. There is no error happened and that is the problem. The data is sent from the server but the client recv() times out without receiving any data.

    What I suspect now is that I am using...
  12. Replies
    15
    Views
    14,592

    C++ Server/Client application

    Hello All

    I am working on a server/client application. The client connects to the server and sends some request data to the server, the server receives this data, does some function call, prepare...
Results 1 to 12 of 12





Click Here to Expand Forum to Full Width

Featured