Search:

Type: Posts; User: PING

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds; generated 40 minute(s) ago.

  1. Thread: Hello!

    by PING
    Replies
    1
    Views
    23,154

    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,744

    What error are you getting?

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

    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,373

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

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

    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,664

    What do you think?

    What do you think?
  7. Thread: realloc question

    by PING
    Replies
    2
    Views
    842

    Yes it is necessary.

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

    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,768

    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
    7,089

    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
    7,089

    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
    7,089

    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,783

    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
    39,435

    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
    847

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

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

    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,218

    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
    13,126

    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
    6,288

    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,183

    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