KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using a loop to read message out from a c Berkeley socket but I am not able to detect when the socket is disconnected so I would accept a new connection. please help while(true) { bzero(buffer,256); n = read(newsockfd,buffer,255); printf("%s\n",buffer); }
Tags (comma-separated)
Save Edits
Cancel