Search:

Type: Posts; User: PING

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Hello!

    by PING
    Replies
    1
    Views
    21,780

    Hello!

    Just wanted to drop by and say hello to everyone. I used to be active back in the 2000s. While I don't program in C anymore, this was one of the first online communities I participated in.
  2. Thread: SSL Socket fork()

    by PING
    Replies
    2
    Views
    5,210

    What error are you getting?

    What error are you getting?
  3. Replies
    4
    Views
    3,350

    Most servers have ICMP echo (ping) turned off....

    Most servers have ICMP echo (ping) turned off. It's best not to rely on ping / traceroute as there is no guarantee about their behavior.
  4. Replies
    5
    Views
    1,258

    case 'r' : case 'R' : //insert code here break;

    case 'r' :
    case 'R' :
    //insert code here
    break;
  5. Replies
    4
    Views
    3,350

    There is no guaranteed way by which you can...

    There is no guaranteed way by which you can monitor the intermediary routers. One way to keep congestion low is to keep the UDP packet size large enough. You could try sending probe packets every now...
  6. Replies
    16
    Views
    3,461

    What do you think?

    What do you think?
  7. Thread: realloc question

    by PING
    Replies
    2
    Views
    787

    Yes it is necessary.

    Yes it is necessary.
  8. Replies
    7
    Views
    3,001

    Have you first tried printing the triangle values...

    Have you first tried printing the triangle values without the formatting?
  9. You're supposed to swap the values instead of...

    You're supposed to swap the values instead of just assigning sort[i] the value of sort[j].
  10. Replies
    6
    Views
    3,364

    printf("\n\nRoot1=%f\n\nRoot2=%f\n,root1,root2");...

    printf("\n\nRoot1=%f\n\nRoot2=%f\n,root1,root2");
    Do you see anything wrong with this statement? Pay attention to the warnings your compiler emits. Also, include <stdio.h>
  11. Replies
    11
    Views
    6,663

    Get a copy of Linux System Programming - O'Reilly...

    Get a copy of Linux System Programming - O'Reilly Media from a local bookstore. It should get you started on the basics. Once you are comfortable with the introductory material covered in the book,...
  12. Replies
    11
    Views
    6,663

    From what I understand, you want to get started...

    From what I understand, you want to get started with network programming, right? How about implementing a command line chat client and a server for starters? You need to mention what you are aiming...
  13. Replies
    11
    Views
    6,663

    Start off with writing a simple file transfer...

    Start off with writing a simple file transfer program or a chat server. Then take up an end to end protocol of your choice and implement it from scratch. Post that you can move over to more advanced...
  14. As I said, fflush(stdin) is wrong as behavior of...

    As I said, fflush(stdin) is wrong as behavior of fflush() with input streams results in undefined behavior. You need to gobble up the '\n's. You can simply put a getchar() in your scenario in place...
  15. Actually, the correct thing would be mesg[n] as...

    Actually, the correct thing would be mesg[n] as read() might return a value less than noBytes. Don't try to capture the \n in scanf().


    scanf();
    //gobble up all \ns
    printf();
    fgets();
    ...
  16. It should be : mesg[n] = '\0'; You...

    It should be :


    mesg[n] = '\0';


    You should not fflush() input streams. You should ideally clear it using getchar(). Check the FAQ on how to clear stdin.
  17. Thread: Send a byte...

    by PING
    Replies
    4
    Views
    1,689

    socket(), sendto(). As simple as that !

    socket(), sendto(). As simple as that !
  18. You will need a library like CURL that lets you...

    You will need a library like CURL that lets you make HTTP calls.
  19. Replies
    5
    Views
    36,601

    You could do this using signals. Set up an alarm...

    You could do this using signals. Set up an alarm for the required timeout and in the handler function, reap the child or kill it.
  20. Replies
    2
    Views
    754

    atoi(num) is perfectly safe in the scenario...

    atoi(num) is perfectly safe in the scenario you've described.
  21. Replies
    3
    Views
    940

    The type of the variable 'name' is 'char'. The %s...

    The type of the variable 'name' is 'char'. The %s modifier expects a 'char*'. You need to either make 'name' a character array
    char name[SOME_LIMIT]; or make it a character pointer
    char* name and...
  22. Replies
    5
    Views
    1,134

    sizeof(buff) is 11. That should give you a hint.

    sizeof(buff) is 11. That should give you a hint.
  23. Thread: Linux raw socket

    by PING
    Replies
    3
    Views
    12,753

    You need to wait for your threads to exit. See...

    You need to wait for your threads to exit. See pthread_join().
  24. Thread: Codechef

    by PING
    Replies
    16
    Views
    5,192

    I don't understand why you are having so many...

    I don't understand why you are having so many issues with it. You just have to read the input from stdin and write the output to stdout. You can check out the FAQ under the help menu on the site for...
  25. Replies
    4
    Views
    1,116

    You could start applying for other jobs. When you...

    You could start applying for other jobs. When you find one, you can put in your papers at the current company and join the other one. Also, isn't it possible for you to talk to your managers and let...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4