subject

What is wrong with this code? I cannot get the port to connect to the socket at all. When I enter a port number the client does nothing. Instructions:Implementing doServer(int listenFd) (10 Points):doServer() should have a loop in which it waits for a client to connect to listenFd. When a client does, it should:malloc() enough memory for 2 integersput the file descriptor from accept() in one of those spacesput the value of threadCount in the other space, and increment threadCountMake a detached thread to handle this new client. I called my function handleClient(), but you may call yours whatever. Pass the address of your malloc()-ed array. The loop should then go back for another accept().void* handleClient(void* vPtr) (10 Points):(Or whatever you call your function that runs a thread for the client.)The thread id and the file descriptor are passed, but they come in as a void* pointer. Use another pointer to cast back to int*Save the file descriptor and thread number in local varsfree() the memoryPrint the thread number and do a loop

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
You know the right answer?
What is wrong with this code? I cannot get the port to connect to the socket at all. When I enter a...
Questions
question
Physics, 19.01.2021 20:40
question
Mathematics, 19.01.2021 20:40
question
Social Studies, 19.01.2021 20:40
Questions on the website: 13722363