Search:

Type: Posts; User: icegood

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,041

    I must close question. Everything regarding...

    I must close question. Everything regarding boost:asio in code was OK. Seems another cutecom instance reads part of data in background...
  2. Replies
    1
    Views
    1,041

    boo0st.asio : async_read_some is not called

    Hi there.
    I have next code snippet:



    ...
    boost::asio::io_service m_ioService;
    boost::asio::serial_port m_port;
    ...
    : m_port(m_ioService),
  3. Replies
    1
    Views
    1,137

    Static library linkage

    To get rid from dynamic shared linkage i should rather link library as object file i.e.
    gcc <my_objects> /full/path/to/my_lib.a
    . And i wonder whether in this case some unneeded object files are...
  4. Replies
    6
    Views
    1,259

    Wonderful link...

    Wonderful link
    But nothing works proprerly, CCMALLOC too old and have Seg Fault inside, Under gperftools i'm suffering on:
    this
    tried Dmalloc, - too complicated, and seems to be unusable for...
  5. Replies
    6
    Views
    1,259

    moreover i need tool to be able to print whole...

    moreover i need tool to be able to print whole stack if memory changes even inside library (a static one with debug symbols).
  6. Replies
    6
    Views
    1,259

    what is about? valgrind --tools=cachegrind?

    what is about? valgrind --tools=cachegrind?
  7. Replies
    6
    Views
    1,259

    By profiling memory usage i mean output like...

    By profiling memory usage i mean output like that:
    <func_name> <mem allocated inside> <mem deallocated inside>
    ... ... ...

    cachegrind?...
  8. Replies
    6
    Views
    1,259

    profiling for memory usage

    I want to profile program for memory usage (both physical and virtual) per functions.
    More precisely i've tried both valgrind and grof with no luck.
    Is there for debian smth better?
  9. Replies
    0
    Views
    668

    openssl: multiprotocol client

    As i see from documentation of openssl result of SSL_CTX_new is rather global object. Is it safe to create two or more such objects to be able to establish different connections under different...
  10. Thread: GnuTLS: how

    by icegood
    Replies
    1
    Views
    843

    GnuTLS: how

    How to be sure that GnuTLS client fully supports
    TLS 1.0/1.1 i.e. in case when server is not known a priori? Only thing i know that server compatible with TLS 1.0/1.1, but which of credentials it...
  11. gethostbyaddr: difference in windows and linux

    here is a piece of code:


    // check for validity 1st argument
    {
    if (!inet_aton(argv[1], &saddr.sin_addr))
    {
    fprintf(stderr, "Invalid ip address\n");
    return_res(1);
    }
  12. Thread: gethostbyaddr

    by icegood
    Replies
    2
    Views
    1,091

    question closed: wrong structure as input for...

    question closed: wrong structure as input for gethistbyaddr
  13. Thread: gethostbyaddr

    by icegood
    Replies
    2
    Views
    1,091

    gethostbyaddr

    For given passed ip as arg1 to program:


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <netdb.h>
    #include <sys/socket.h>
    #include <arpa/inet.h>
    #include <netinet/in.h>
  14. Replies
    2
    Views
    1,665

    solved: ns_initparse, ns_msg_count, ns_parserr

    solved: ns_initparse, ns_msg_count, ns_parserr
  15. Replies
    2
    Views
    1,665

    in other words accordingly to RFC 1035 (page 17)...

    in other words accordingly to RFC 1035 (page 17) i obtain simply pointer to some data. To which structure should i fit this pointer to read actual data?
  16. Replies
    2
    Views
    1,665

    res_query under linux

    which kind of structure returns res_query in answer (see resolver(3))
    if PTR query was sent?
  17. Replies
    1
    Views
    1,093

    physical memory usage: reduce

    Help me to find utilite to monitor physical memory usage for given application. Namely i want to see it reduction after calling
    madvise(..., MADV_DONTNEED) on MAP_ANONYMOUS memory space.
  18. Replies
    9
    Views
    1,675

    Clear. Thanks Yep, other way i see is to do...

    Clear. Thanks


    Yep, other way i see is to do via signals. More actually lines of code with correct masking (only one thread for each signal, actually i should do that in original code, should i?)...
  19. Replies
    9
    Views
    1,675

    Yes, i thought about that, but it's OK, i don't...

    Yes, i thought about that, but it's OK, i don't see nothing wrong if loop runs one/two more time(s). It's rhather hack there.


    Yes, i sow that, repaired that in 1st post, wonder even why it works...
  20. Replies
    9
    Views
    1,675

    Walking throught internet i really found that...

    Walking throught internet i really found that people use to do that, but it not seems to be necessary in my situation. And example from manual
    PTHREAD_CANCEL(3)
    calls
    exit(EXIT_SUCCESS);
    for...
  21. Replies
    9
    Views
    1,675

    Found: join should be done not instread but after...

    Found: join should be done not instread but after cancellation.
  22. Replies
    9
    Views
    1,675

    thread local storage wasn't freed properly

    Have client:


    /* dgramclnt.c:
    *
    * Example datagram client:
    */
    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>
  23. Replies
    1
    Views
    699

    Everything is OK. p htons(80) $1 = 20480

    Everything is OK.
    p htons(80)
    $1 = 20480
  24. Replies
    1
    Views
    699

    getaddrinfo: filtering by service

    I supposed that passing "80"/"host" as service parameter to getaddrinfo
    will return web-socket on host. But instead of that (after passing
    "www.google.com" as host) i obtained structure with...
  25. Replies
    12
    Views
    1,817

    Partially solved. All those commands treated...

    Partially solved. All those commands treated socket to be tcp one. But lsof without tcp filtering show:


    checked via gdb

    Yest, that fifth! "can't identify protocol" - protocol supposed to be...
Results 1 to 25 of 53
Page 1 of 3 1 2 3