Search:

Type: Posts; User: wwwnuwan

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,929

    with valgrind it does not work. I use seting...

    with valgrind it does not work. I use seting debuging option (-d) at compilation
    ache$i586-mingw32msvc-gcc -o adapter_listner_win32.exe adapter_listner.c -liphlpapi -lws2_32

    and then set...
  2. Replies
    1
    Views
    1,929

    Debug win32 C program on linux

    Hi,
    I have developed a win32 program on linux in C. I used mingw to compile it and Wine to run it.
    Now I have end up with some memory leak and I need to find where it comes from in the program. As...
  3. getifaddrs return same adapter multiple times

    Hi,
    I have written a c program to retrieve all the network interfaces.


    getifaddrs(&ifaddr)


    But when I iterate through the ifaddr elements of the linklist it returns same interface many...
  4. Replies
    0
    Views
    3,572

    geting ipv4 and ipv6 interfaces with ioclt

    Hi,
    I hv a programme which returns the local ip(ipv4) address.
    I want to improve this as to check the ip is whether ipv4 or ipv6 and return.
    here is what i hv written so for to get ipv4 address....
  5. Replies
    1
    Views
    942

    how to create a make file?

    Hi, Is there any tools to create makemake file?
    I hv set of source files (say mcast.c main.c) and a header file in my program. i need to create a make file for this.
    I went through the google to...
  6. Replies
    7
    Views
    2,126

    Hi, Is there any tools to create makemake file....

    Hi, Is there any tools to create makemake file.
    I hv set of source files and a header file in my program. i need to create a make file for this.
    I went through the google to find how to and im...
  7. Replies
    3
    Views
    3,158

    how to compare two uuids?

    Hi,
    In my program I hv two uuid_t type pointers.
    I want to compare these two.
    How can i do that?

    eg code



    int comuuid( uuid_t *uuid1 , uuid_t *uuid2 )
  8. Replies
    2
    Views
    19,071

    thanks a lot. I am new to C. it works now.

    thanks a lot. I am new to C. it works now.
  9. Replies
    2
    Views
    19,071

    undefined reference to `uuid_generate'

    Hi, I tried to construct a simple program to generate an uuid.


    #include <stdio.h>
    #include <uuid/uuid.h>
    int main()
    {
    get_uuid();
    return 1;
    }
  10. Replies
    12
    Views
    21,071

    sory its 127.0.1.1

    sory its 127.0.1.1
  11. Replies
    12
    Views
    21,071

    I think this has no way to work out since my...

    I think this has no way to work out since my machine name (which I get by gethostname() method) is not in a DNS.
    so I think it returns 127.0.0.1

    any ideas about it?

    Thanks.
  12. Replies
    12
    Views
    21,071

    Hi, Finaly i found the fellowing programs to...

    Hi,
    Finaly i found the fellowing programs to obtain the local ip .
    but it returns 127.0.1.1
    please advice what goes wrong with this?



    struct hostent *he;
    struct in_addr a;
  13. Replies
    12
    Views
    21,071

    could you please give a some code example for...

    could you please give a some code example for this?

    now my programe is as follows.


    char *hostname = malloc(MAXHOSTNAMELEN );
    memset( hostname , 0 , MAXHOSTNAMELEN );
    ...
  14. Replies
    12
    Views
    21,071

    i tried with gethostname. but it returns the...

    i tried with gethostname.
    but it returns the hostname like "myLaptop".
    I just need the ip like 192.168.10.10
    my prev code was like as follows



    memset( hostname , 0 , MAXHOSTNAMELEN );
    ...
  15. Replies
    12
    Views
    21,071

    how to get local ip adress

    Hi,
    How can I get local IP adress within a C program?

    I tried this with gethostname function but it can not be helped since i dnt know the host name of the machine.

    Thanks
  16. Replies
    4
    Views
    1,528

    Thanks for the reply. If I do it at application...

    Thanks for the reply.
    If I do it at application level could you give me some tips how to filter its own ip of a peer node.
    I mean a easy way rather I try with it. actualy im in a touch schedule...
  17. Replies
    4
    Views
    1,528

    multicasting - need a help on multicasting

    Hi All,

    I im developing some p2p multicasting overlay layer using c.
    basically what i want to implement is to multicast a string(or any query) from one node wait for a possible response. In the...
  18. Hi, I know how to use malloc function basically....

    Hi,
    I know how to use malloc function basically.
    what i want to know is how to allocate the memory dynamically with scanf.
    for example say im going to scan the string "Test" . Then i want to...
  19. how to allocate memory dynamically to the pointer used in scanf function?

    Hi,
    Can anybody tell me how to allocate memory to a pointer which is to used in scanf.



    char *varpointer;
    scanf("%s" , varpointer); // read some chars here


    when i used above code...
  20. thank you very much for pointing out my mistake....

    thank you very much for pointing out my mistake. it works now. thanks again.
  21. compilation error comes with the declaration of timeval

    Hi,
    I declared the struct time value and import the header sys/time.h also.
    but when compile the program it returns gives the error "/home/lsf/mesh_project/D5/src/lib/mcast.c|199|error: ‘timeval’...
  22. need technical help regarding multicasting

    Hi Gurus,
    This is my first thread here.

    I m developing p2p multicasting subtrate which is intended to multicast a query string and wait for a response from its groups nodes.

    here i need to...
Results 1 to 22 of 22