Search:

Type: Posts; User: dav_mt

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,139

    if (packetsrcvd == 250) //850 { pID =...

    if (packetsrcvd == 250) //850
    {
    pID = fork();
    if (pID == 0)
    {
    gettimeofday(&end, NULL);

    cout << "Received after: " << endl;
    if (end.tv_usec >...
  2. Thread: Timer in Linux

    by dav_mt
    Replies
    5
    Views
    3,210

    thanks for the help ppl working gr8 with...

    thanks for the help ppl

    working gr8 with gettimeofday() function and sorry for posting in the wrong forum
  3. Replies
    6
    Views
    2,139

    my issue is a little bit different here. I'm...

    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...
  4. Replies
    6
    Views
    2,139

    Throw Catch for External Program

    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...
  5. Thread: Timer in Linux

    by dav_mt
    Replies
    5
    Views
    3,210

    Timer in Linux

    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...
  6. thanks for your help managed to make it work :)...

    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...
  7. i managed to use the fork() function and till...

    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...
  8. Oki, i'm assuming that i need to learn some...

    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...
  9. Launching an application within program runtime

    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...
Results 1 to 9 of 9