if (packetsrcvd == 250) //850
{
pID = fork();
if (pID == 0)
{
gettimeofday(&end, NULL);
cout << "Received after: " << endl;
if (end.tv_usec >...
Type: Posts; User: dav_mt
if (packetsrcvd == 250) //850
{
pID = fork();
if (pID == 0)
{
gettimeofday(&end, NULL);
cout << "Received after: " << endl;
if (end.tv_usec >...
thanks for the help ppl
working gr8 with gettimeofday() function and sorry for posting in the wrong forum
my issue is a little bit different here.
I'm sending video packets over a network and I'm launching Real Player to decode the file. If the first intra-frame of the file and the header of the...
Is it possible to catch errors of an external program launched within runtime?
Let's say for example I'm writing to a file and the file doesn't have enough contents to be "openable" so when...
Hi I need to find the time between two events in my code. Mainly I'm receiving packets over Bluetooth and as soon as I receive a certain amount of packets I launch a video player using fork() and...
thanks for your help managed to make it work :)
for future reference this is how it worked
execl("/*PATH TO VIDEO PLAYER*/", "-o", "/*VIDEO FILE*/", (char *) 0);
where -o refers to...
i managed to use the fork() function and till here we're good (thanks, looked at a quick tutorial and really saved me some time :) )
i'm having some trouble using the exec() function
if...
Oki, i'm assuming that i need to learn some theory about threads.
so basically it will boil down about having a thread receiving data on sockets, and a thread that will launch the video player...
Hi, I am currently doing a program where I am receiving data via sockets and writing this data on a file (this is a video file). Now I need a mechanism so that when a certain number of packets have...