I must close question. Everything regarding boost:asio in code was OK. Seems another cutecom instance reads part of data in background...
Type: Posts; User: icegood
I must close question. Everything regarding boost:asio in code was OK. Seems another cutecom instance reads part of data in background...
Hi there.
I have next code snippet:
...
boost::asio::io_service m_ioService;
boost::asio::serial_port m_port;
...
: m_port(m_ioService),
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...
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...
moreover i need tool to be able to print whole stack if memory changes even inside library (a static one with debug symbols).
what is about? valgrind --tools=cachegrind?
By profiling memory usage i mean output like that:
<func_name> <mem allocated inside> <mem deallocated inside>
... ... ...
cachegrind?...
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?
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...
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...
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);
}
question closed: wrong structure as input for gethistbyaddr
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>
solved: ns_initparse, ns_msg_count, ns_parserr
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?
which kind of structure returns res_query in answer (see resolver(3))
if PTR query was sent?
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.
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?)...
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...
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...
Found: join should be done not instread but after cancellation.
Have client:
/* dgramclnt.c:
*
* Example datagram client:
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
Everything is OK.
p htons(80)
$1 = 20480
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...
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...