Search:

Type: Posts; User: Massive

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,714

    this is the code: #include #include...

    this is the code:

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    #define FD_SET_SIZE 11

    typedef struct
    {
  2. Replies
    8
    Views
    1,714

    i tried also in this way ubt the result is always...

    i tried also in this way ubt the result is always the same...and i don't know how...
    by me the problem is that there is a struct inside a struct and (i don't know for which problem) there is some...
  3. Replies
    8
    Views
    1,714

    but in this way i lost also char *table_name and...

    but in this way i lost also char *table_name and i don't want to lost this information.... i want only to free data of id_client not of all struct TABLE......
  4. Replies
    8
    Views
    1,714

    but i want to free id_client... what i have to...

    but i want to free id_client...

    what i have to do ???
  5. Replies
    8
    Views
    1,714

    so in this way the code is right??? ...

    so in this way the code is right???

    free(db_list[0].db_table[0].id_client);

    free(db_list[0].db_table[0].table_name);

    free(db_list[0].db_name);

    thx anyway.... :)
  6. Replies
    8
    Views
    1,714

    free problem with struct

    hi i have a problem when i use free with a structure inside a structure ...this is the code...


    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    typedef struct
    {
    char...
  7. Replies
    5
    Views
    2,447

    > Besides, do you have any real reasons not to...

    > Besides, do you have any real reasons not to use LinuxThreads, i.e. do they miss something you need?

    i don't think but if NPTL is more efficient why don't use it? especially if my application...
  8. Replies
    5
    Views
    2,447

    attention! nptl it's different to ngpt ...

    attention!
    nptl it's different to ngpt

    http://people.redhat.com/drepper/nptl-design.pdf

    take a look!

    :)

    P.S. see the benchmark at the last pages...
  9. Replies
    5
    Views
    2,447

    and what about NPTL (native posix thread library)...

    and what about NPTL (native posix thread library) ??

    it's a newer library, its'right??

    thank u.
  10. Replies
    5
    Views
    2,447

    thank u for the information, i saw that...

    thank u for the information, i saw that LinuxThreads are built in but i'm not sure :)
  11. Replies
    5
    Views
    2,447

    pthread & LinuxThread

    hi, i'm developing an application that use threads. i read that there are user-space and kernel-space threads.
    i want to use kernel space threads....

    i read that linux supports...
  12. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    i know but i don't know where are these...

    i know but i don't know where are these functions....

    thank u however :)
  13. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    i resolved the problem with COFF2OMF borland tool...

    i resolved the problem with COFF2OMF borland tool ......the compile goes all ok.

    now i have to understand how to use tihs libraries :)

    i execute the program compiled above but it doesn't create...
  14. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    i tried but there is already the same...

    i tried but there is already the same problem.......
  15. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    of course u are right.... i'm a little bit...

    of course u are right....

    i'm a little bit stupid :rolleyes:

    but if i compile with option
    -L library there is another error :confused:


    D:\uni\Progettone\XML>bcc32 -L "c:\Program...
  16. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    but i already put the library in the path (...

    but i already put the library in the path ( \include) the problem is that the linker doesn't find the reference....

    don't u think??
  17. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    these is the errors: Error: Unresolved...

    these is the errors:


    Error: Unresolved external '_xmlNewDoc' referenced from D:\UNI\PROGETTONE\XML\TEST.OBJ
    Error: Unresolved external '_xmlNewDocNode' referenced from...
  18. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    this is a simple apllication that it should...

    this is a simple apllication that it should create an xml file....if i understand api specification....

    but with borland 5.5 compiler i have an error with linker...
    ...
  19. Thread: XML library

    by Massive
    Replies
    9
    Views
    3,159

    XML library

    hi, i have downloaded xml library from xmlsoft.org, the library name is libxml2 (for linux, windows) .... i read the doc but it is not very clear .... i don't understand if with this library is...
  20. Thread: recv() problem

    by Massive
    Replies
    5
    Views
    2,132

    yes but i would to use non blocking socket and in...

    yes but i would to use non blocking socket and in this way the recv is blocking (or similat to blocking socket).....
  21. Thread: recv() problem

    by Massive
    Replies
    5
    Views
    2,132

    ok i understand, but if i'm sending a binary file...

    ok i understand, but if i'm sending a binary file ?? it's a problem to put a terminator character...
    don't think??
  22. Thread: recv() problem

    by Massive
    Replies
    5
    Views
    2,132

    recv() problem

    in i simple program that use sockets how can i know if the recv() function has received all data ???
    better:
    if the client send a message but the send not send all data and then the client must...
  23. Replies
    6
    Views
    1,834

    for ( i = 0 ; i < FD_SETSIZE ; i++ ) if (...

    for ( i = 0 ; i < FD_SETSIZE ; i++ ) if ( FD_ISSET(i,&set) ) { /* do stuff */ }

    i can't do this because in windows FD_SETSIZE is 64 and if the firs socket descriptor is 100 it never enter in that...
  24. Replies
    6
    Views
    1,834

    view this unix system program: /* **...

    view this unix system program:

    /*
    ** select.c -- a select() demo
    */

    #include <stdio.h>
    #include <sys/time.h>
    #include <sys/types.h>
    #include <unistd.h>
  25. Replies
    6
    Views
    1,834

    my problem is this: i want to use the select()...

    my problem is this:
    i want to use the select() function to use non blocking sockets,
    when i put a socket(file) descriptor in FD_SET i don't know how to iterate on fd_set to find the ready socket,...
Results 1 to 25 of 31
Page 1 of 2 1 2