Some UDP socket programming questions I am confused about?

(1) Since I see no reference to mySocket other than the one in the question I would say your answer seems right.

(1) Since I see no reference to mySocket other than the one in the question I would say your answer seems right. (2) The address/port are obviously necessary. However this could be a trick question in that client could call connect() on the socket.

With UDP, connect() the kernel keeps track of the address passed in the call as the peer of the socket. The socket could then just call write() or send() rather than having to use sendto(). Still, calling connect would still require the address/port in the first place so who knows what they are getting at.(3) There is no "connection" in UDP.

Many clients could send to the server. The server can get the address of the individual clients from its recvfrom and then turn around and use that address in its sendto.

Note: you said 'no' on point 3 and then answered 'yes' :D Edit: oh, you're checking his answers :) – Chris Dennett May 7 at 23:40 @Chris Dennett - I removed it. It was confusing. – Duck May 8 at 0:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions