Search:

Type: Posts; User: Yuushi

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    2,208

    thnx

    thnx
  2. Replies
    6
    Views
    2,208

    that makes sense but I don't really have a clue...

    that makes sense but I don't really have a clue how to do that, I assume you retrieve the chars in a for loop and put them in a variable untill buf == "\n"?

    wouldn't slamming them together be a...
  3. Replies
    6
    Views
    2,208

    changed it to: while ((aant_bytes =...

    changed it to:



    while ((aant_bytes = recv(new_fd, buf, MAXDATASIZE, 0)) > 0) {

    // we got some data from a client
    printf("%s",buf);
    }
  4. Replies
    6
    Views
    2,208

    Problem with Socket.h in C

    Hello all,
    I am trying to make a small server which is connectable trough a telnet session. I am following Beej's guide but I am stuck with a error I do not seem to get fixed.

    when I run this...
  5. Replies
    5
    Views
    1,326

    ok that makes sense I assume that the flag needs...

    ok that makes sense I assume that the flag needs to be added to the recv flag part of the code. where I have a zero now. How would I add the flag? since it requires a int.

    I assume this won't work...
  6. Replies
    5
    Views
    1,326

    I though this was my problem but I think it is...

    I though this was my problem but I think it is the way I use the recv statement Its probably totally wrong since because of the while it never comes to an end. And if I try it with a simple if it...
  7. Replies
    5
    Views
    1,326

    Beginners - Problem

    Hello all,
    I do not have a lot of expierence with C and at this moment I am kinda stuck. What I am trying to do is make a server in c which is able to communicate with a telnet session. At this...
Results 1 to 7 of 7