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

Search:

Type: Posts; User: perto1

Search: Search took 0.03 seconds.

  1. [RESOLVED] Choosing design pattern for clinet/server communication

    I want to design file passing client/server (posix). I have multiple ways of passing file: pipe, queue etc. Which design pattern would be useful.

    I thought service locator pattern. Any...
  2. Replies
    2
    Views
    2,030

    Re: Sending Posix message via pipe

    It should throw error when byte is not read. (Edited)
  3. Replies
    2
    Views
    2,030

    Sending Posix message via pipe

    I have following file called helper.h, which I want to call in server and client files later.




    #ifndef HELPER_H

    #include <iostream>
    #include <fstream>
    #include <string>
  4. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    Re: File I/O

    Once size_t& bytes has been passed as parameter in function, we just call it with the name later instead of defining it again as
    size_t bytes_read. My finding.

    Thanks.
  5. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    Re: File I/O

    Is the bytes in writeFileContent
    size_t bytes {}; accessing the getFileContent()'s bytes ? For me it shows 0 bytes read
  6. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    Re: File I/O

    If I have size of vector as
    size_t bytes_read = sizeof(vecOfStrs[0]) * vecOfStrs.size(); in the getFileContent(), how do i call it in the writeFileContent and make comparison if they are equal. ...
  7. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    Re: File I/O

    Use for client server communication
  8. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    Re: File I/O

    I want to modify the code as different functions. Any suggestions what improvements to make:



    std::string getFileContent(const std::string & infileName)//Should it return vecOfStrs, change it...
  9. Thread: File I/O

    by perto1
    Replies
    10
    Views
    3,514

    File I/O

    I am trying to read a file into buffer as vector, and write it to another file. It reads the content, but doesn't seem to write. What is the mistake and how to correct ?


    #include <iostream>...
  10. Thread: OOP Basics

    by perto1
    Replies
    3
    Views
    2,916

    Re: OOP Basics

    Why is there curly braces after the token_number ?
  11. Thread: OOP Basics

    by perto1
    Replies
    3
    Views
    2,916

    OOP Basics

    Hi, I am a first semester student, learning the OOPs basics. I need help for a program:


    class Message{
    public:
    void input();
    int output();
    private:
    long token_number;// next token to be...
Results 1 to 11 of 11





Click Here to Expand Forum to Full Width

Featured