Skip to content
Advertisement

Tag: c++

Deezer native API under linux: Unanble to create simple app

I tried to create simple app which will connect to deezer and play single song. I got access token and wrote this program. Target machine: linux x86_64 API version: v1.0.1 Suddenly i ran into problems. First run shows me this output: 398748:201417 dz_bufferevent: [dz_bufferevent_on_activation:561] could not open /var/tmp/settings.dat I created this file, but I suspect that it shouldn’t be empty.

resend packets via RAW sockets in linux

It’s needed to read raw data from one interface and send it via another. open&&config(the same for sock_raw_outer): then in cycle: then, if I catch on sock_raw_inner any packet(arp request, for example), it sended on sock_raw_inner again and again by sendto. What’s wrong? Thanks. Answer Your sock_raw_inner is still listening on every interface because the bind on eth0 you are

POSIX timer hangs up after a few runs

I have created a POSIX timer in the main function of my program. Each thread of the main program is setting the timer so that on expiry of it, the signal handler update one variable which awakes the next thread of the same process. The timer is working fine most of the time but not always. It sometimes completes the

implicit declaration of function ‘sched_setaffinity’

I’m writing a program which needed to be run on single core. To bind it to single core, I’m using sched_setaffinity(), but the compiler gives warning: implicit declaration of function ‘sched_setaffinity’ My test code is: Can you please help me to figure it out. Actually code is compiled and run, but I’m not sure whether it is running on single

Advertisement