Search:

Type: Posts; User: Opply

Search: Search took 0.01 seconds; generated 2 minute(s) ago.

  1. Replies
    1
    Views
    992

    udp socket library

    Hey,

    I'm attemping to write a little UDP socket library in c++ on linux so a user can just create a new instance of a UDPSocket class, specify desination ip and port, and just connect. Then the...
  2. Replies
    8
    Views
    4,152

    in C you could do: void print_it(string*...

    in C you could do:


    void print_it(string* details, int sizeOfArray)
    {
    for( int i=0; i<sizeOfArray; i++ )
    { cout << detailts[i] << endl;
    }
    }
  3. One problem is with your while loop. when you...

    One problem is with your while loop.

    when you write:


    while (os >> temporary)
    std::cout << temporary << endl;

    it is the same as:
  4. Replies
    5
    Views
    2,373

    If you want a bit more structure, you can do...

    If you want a bit more structure, you can do something like:



    #include <iostream>
    #include <string>

    using namespace std;

    int main()
  5. Replies
    0
    Views
    1,459

    linux multicast routing

    I'm trying to write a multicast application on a linux computer with several network adapters.

    To send multicast packets I rely on the operating systems routing tables, but to receive multicast...
  6. Replies
    17
    Views
    5,165

    Awesome, I rly liked that solution! :D Cheers...

    Awesome, I rly liked that solution! :D

    Cheers all!
  7. Replies
    17
    Views
    5,165

    This is ofc a way, but I would rather not add...

    This is ofc a way, but I would rather not add file access unless it is really needed.

    I was thinking, is it not possible to override FILE in some way?
  8. Replies
    17
    Views
    5,165

    If I could change the function, I would, but it...

    If I could change the function, I would, but it is a part of a bigger system and I am not allowed to modify it..

    I've tried alot of stuff with the stringstream, some things even compile and does...
  9. Replies
    17
    Views
    5,165

    writing to a char buffer as a FILE*

    I am trying to use an old library I found that I am unable to modify.

    The function I am trying to use takes in a FILE* as a parameter, and writes to this stream using the fprintf function.
    ...
Results 1 to 9 of 9