Skip to content

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 o…

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 Yo…

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 comple…