Search:

Type: Posts; User: Morbo

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,338

    Fork => zombie => error

    pid = fork();
    if (pid < 0){ error("Error: Cannot create new proces"); return EXIT_FAILURE;}
    if (pid == 0) {
    i++;
    close(sockfd);
    dostuff(newsockfd,i+pid);
    close(newsockfd);...
  2. Replies
    3
    Views
    1,251

    I am now testing the raw sockets thing. Hope it...

    I am now testing the raw sockets thing. Hope it works. Also I think I just might change my server to respond a broadcast and then sending his ip and port to the client that send the broardcast.
    ...
  3. Replies
    3
    Views
    1,251

    scanning a network

    I made a little socket serverthat works (tested with telnet) and now I am starting to code myself a client to interact with the server.

    The problem:

    multiple pc can host multiple servers with...
  4. Thread: Key combo

    by Morbo
    Replies
    1
    Views
    1,169

    Key combo

    int main(int argc, char *argv[]) {
    int test;
    test = 0;
    while (1) {
    test++;
    }
    test--;
    printf("%d",test);
    return 0;
Results 1 to 4 of 4