Search:

Type: Posts; User: PING

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: SSL Socket fork()

    by PING
    Replies
    2
    Views
    4,544

    What error are you getting?

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

    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.
  3. Replies
    5
    Views
    1,109

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

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

    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...
  5. Replies
    16
    Views
    2,926

    What do you think?

    What do you think?
  6. Thread: realloc question

    by PING
    Replies
    2
    Views
    699

    Yes it is necessary.

    Yes it is necessary.
  7. Replies
    7
    Views
    2,231

    Have you first tried printing the triangle values...

    Have you first tried printing the triangle values without the formatting?
  8. 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].
  9. Replies
    6
    Views
    2,674

    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>
  10. Replies
    11
    Views
    5,664

    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,...
  11. Replies
    11
    Views
    5,664

    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...
  12. Replies
    11
    Views
    5,664

    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...
  13. 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...
  14. 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();
    ...
  15. 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.
  16. Thread: Send a byte...

    by PING
    Replies
    4
    Views
    1,546

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

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

    You will need a library like CURL that lets you make HTTP calls.
  18. Replies
    5
    Views
    31,439

    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.
  19. Replies
    2
    Views
    623

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

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

    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...
  21. Replies
    5
    Views
    936

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

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

    by PING
    Replies
    3
    Views
    11,917

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

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

    by PING
    Replies
    16
    Views
    3,384

    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...
  24. Replies
    4
    Views
    969

    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...
  25. Thread: Codechef

    by PING
    Replies
    16
    Views
    3,384

    Well, I doubt the contests do that. Most contests...

    Well, I doubt the contests do that. Most contests have a solution ready for all the problems that they put up.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4