This question shows research effort; it is useful and clear
-1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
while ((c = accept()> 0){
// Do whatever a web server does.
printf("got connected\n");
recv_buf[i]='\0';
printf("%s\n" , recv_buf);
printf("input received");
}