Search:

Type: Posts; User: Joe Monti

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,234

    Thanks. I will probably use some kind of encoding...

    Thanks. I will probably use some kind of encoding to format each object, but I am still concerned that more than one object will read/write at a time.

    There should be some way to signal the buffer...
  2. Replies
    1
    Views
    2,234

    Sockets and buffer size

    I'm writing a C++ app that uses sockets and I have no problem sending an recieving, but am having trouble separating the differnt types of messages i'm sending.

    I have several classes from which I...
  3. Replies
    5
    Views
    1,651

    That really helps. Thanks!

    That really helps. Thanks!
  4. Replies
    5
    Views
    1,651

    Basically the problem I am running into is how do...

    Basically the problem I am running into is how do I send type information? and how do I use that type information to create the correct object when reading?
  5. Replies
    5
    Views
    1,651

    Here's some psudo-ish C++-ish Java-ish code. It...

    Here's some psudo-ish C++-ish Java-ish code. It is the basic jist of how I would like things to work. The idea is to make creating and handling different types of data to be sent over the network as...
  6. Replies
    5
    Views
    1,651

    serialization and object types

    I run an open source project that was started in Java, but for performance considerations I am re-writing in C++. With Java it was easy to implement an object-oriented client-server communication...
  7. Replies
    6
    Views
    2,053

    Thank you so much! It took me a while to...

    Thank you so much!

    It took me a while to figure out what exactly was going on, but I was able to mess around with it to get it working with my setup. That really helped me get back into C++ mode....
  8. Replies
    6
    Views
    2,053

    I tried some ideas from that thread and I think I...

    I tried some ideas from that thread and I think I ran into the real problem: Sending C++ member function to C library function

    Any ideas?
  9. Replies
    6
    Views
    2,053

    Thanks, I'll take a look at that and see what I...

    Thanks, I'll take a look at that and see what I can do.

    Also, can I just not bother sending the run function to start and just acess the sub-class implementation of run from the start...
  10. Replies
    6
    Views
    2,053

    sending C++ member function to C function

    I have a C++ member function that I need to send to a C library function, but it keeps yelling at me :(

    Here's what I do:

    pthread_create(&pthread_id, NULL, this->*_run, NULL);

    Here' s what...
  11. Replies
    8
    Views
    16,552

    Yeah .... It compiles and runs without error. I...

    Yeah .... It compiles and runs without error. I will just disregard the warning.

    Thank you! :)
  12. Replies
    8
    Views
    16,552

    This is what it looks like now #define...

    This is what it looks like now


    #define THE_PATH "/path/tosomething"
    #define CAT(a,b) a ## b
    some_function (CAT (THE_PATH, "/image.png"));

    but I get this warning,
    warning: pasting...
  13. Replies
    8
    Views
    16,552

    I'm using automake/autoconf with no special...

    I'm using automake/autoconf with no special configure or make options.

    I think -Wall or -Wtraditional will show the warning.

    But my main concern is that older versions of GCC (2.x) will not...
  14. Replies
    8
    Views
    16,552

    I dont want to do strcat because I want it to be...

    I dont want to do strcat because I want it to be concatentated at build time (which i dont think my example does) for performance considerations
  15. Replies
    4
    Views
    1,019

    It's also a really good idea to check for '\0'...

    It's also a really good idea to check for '\0' just in case. But it depends on how certain it will have the ' ' or '"'
  16. Replies
    8
    Views
    16,552

    Best way to concatenate #define to "string"

    I have some code as such

    #define THE_PATH "/path/to/somthing"
    // later on down I do this
    some_function (THE_PATH "/image.png");


    This is a decent sized app and THE_PATH is something that I...
  17. Replies
    7
    Views
    6,010

    EUREKA!!!! I found the problem. Malloc can get...

    EUREKA!!!!

    I found the problem. Malloc can get confused when malloced memory has buffer overflow. I sifted through all my mallocing and found a stupid error. Instead of malloc (strlen (my_string)...
  18. Replies
    7
    Views
    6,010

    Yeah, I've tried flushing the stream after the...

    Yeah, I've tried flushing the stream after the printf()'s.

    When I stepped through with a debugger the malloc() line is where it hangs.

    I've inspected the os_list_put() function and it looks...
  19. Replies
    7
    Views
    6,010

    Yeah, i'm sure its malloc. I've put printf's...

    Yeah, i'm sure its malloc. I've put printf's before and after the malloc function and it hangs before printing the second printf, it is able to complete the malloc on the first insert, but successive...
  20. Replies
    7
    Views
    6,010

    Malloc hanging

    I've got a strange C problem that I've never seen before and can't figure out why its happening.

    I'm writing a GTK app and I keep a linked list of data which is graphically represented as a CList....
Results 1 to 20 of 20