thnx
Type: Posts; User: Yuushi
thnx
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...
changed it to:
while ((aant_bytes = recv(new_fd, buf, MAXDATASIZE, 0)) > 0) {
// we got some data from a client
printf("%s",buf);
}
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...
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...
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...
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...