Search:

Type: Posts; User: watchintv

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    30
    Views
    1,834

    Ok, thank you very much. You're a great guy. ...

    Ok, thank you very much. You're a great guy.

    And noted. I will take a look at all that just to be safe.
  2. Replies
    30
    Views
    1,834

    Hey algorism, do you mind if I upload that code...

    Hey algorism, do you mind if I upload that code to my github account?
  3. Replies
    30
    Views
    1,834

    AWESOME. Thanks man. That looks great.

    AWESOME. Thanks man. That looks great.
  4. Replies
    30
    Views
    1,834

    It's incomplete. There's number of things I'd...

    It's incomplete. There's number of things I'd like to implement like better error checking. And an output file. But according to Wireshark all the requests are there and all the sockets that were...
  5. Replies
    30
    Views
    1,834

    #define _POSIX_SOURCE #include ...

    #define _POSIX_SOURCE
    #include <stdio.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <stdlib.h>
    #include <arpa/inet.h>
    #include...
  6. Replies
    30
    Views
    1,834

    Yes haha And heres the damn thing. I'm pretty...

    Yes haha

    And heres the damn thing. I'm pretty sure the program is working now, without mutexes. And the reason its printing all over the place is because the threads are executing at different...
  7. Replies
    30
    Views
    1,834

    Not sure mutexes are what want here since I want...

    Not sure mutexes are what want here since I want the thread functions to operate concurrently.
  8. Replies
    30
    Views
    1,834

    So, Im having luck with putting a mutex lock...

    So, Im having luck with putting a mutex lock around everything in test_proxy. strtok_r works fine now. Great.

    Theres just one problem, whhen one of my send/rec functions fail, connect for example,...
  9. Replies
    30
    Views
    1,834

    Yeah its got the underscore. Im on linux.

    Yeah its got the underscore. Im on linux.
  10. Replies
    30
    Views
    1,834

    Could the threads be running simultaneously and...

    Could the threads be running simultaneously and thats why the printf statements are out of order? Also, besides that, the program quits early without any error.
  11. Replies
    30
    Views
    1,834

    No it does work if I just call test_proxy.

    No it does work if I just call test_proxy.
  12. Replies
    30
    Views
    1,834

    Ok, thanks for the suggestions everyone. So far,...

    Ok, thanks for the suggestions everyone. So far, I added the definition for POSIX_SOURCE. And its still not working. I removed the strtok_r and used the normal function outside the thread and I was...
  13. Replies
    30
    Views
    1,834

    Perhaps I'm not using strtok_r properly?

    Perhaps I'm not using strtok_r properly?
  14. Replies
    30
    Views
    1,834

    I was using tinyproxy to test locally

    I was using tinyproxy to test locally
  15. Replies
    30
    Views
    1,834

    #include #include #include...

    #include <stdio.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <stdlib.h>
    #include <arpa/inet.h>
    #include <fcntl.h>
    #include <errno.h>...
  16. Replies
    30
    Views
    1,834

    Yeah, It's still not working.

    Yeah, It's still not working.
  17. Replies
    30
    Views
    1,834

    Ok, Im gonna have to play around with this for a...

    Ok, Im gonna have to play around with this for a little bit to see what the deal is... It seemed like I was still getting the same problems when I had fixed strtok, but I'll check again.

    Thanks
  18. Replies
    30
    Views
    1,834

    Ok, thanks for the advice. I'll look into...

    Ok, thanks for the advice. I'll look into handling the different return values. I wasn't really having too much of a problem with that but I agree. Great advice. And thanks for the tip about the null...
  19. Replies
    30
    Views
    1,834

    Ok, thanks, I didn't know that. I added it. ...

    Ok, thanks, I didn't know that. I added it.

    Still apparently not working. :(
  20. Replies
    30
    Views
    1,834

    Need help with running multiple theads

    So I made a proxy tester. It sends a HEAD request to the proxy and receives a response. It works perfect without threads. But with threads the main problem I'm having is that the threads are not...
  21. That all makes total sense. Thanks for the...

    That all makes total sense. Thanks for the advice.

    So far, I have the following (with everyone's help of course):




    #include <stdio.h>
    #include <string.h>
  22. Thanks Matticus and GReaper.

    Thanks Matticus and GReaper.
  23. Ok, thanks for the challenge haha. Well, I think...

    Ok, thanks for the challenge haha. Well, I think I have a solution. Here it is:





    #include <stdio.h>
    #include <string.h>

    int main() {
  24. Replies
    3
    Views
    578

    Ah, ok that makes sense. Thank you.

    Ah, ok that makes sense. Thank you.
  25. Replies
    3
    Views
    578

    Question about strcmp()

    Theres an example on tutorialspoint.com that goes like this:




    #include <stdio.h>
    #include <string.h>

    int main ()
    {
Results 1 to 25 of 32
Page 1 of 2 1 2