APPLICATION LAYER
SOCKET INTERFACE PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What must be done before disconnecting a socket?
|
Ending the data stream
|
|
Telling the server good-bye
|
|
Flushing the cache
|
|
Nothing, you can simply “unplug” with no ill effects
|
Explanation:
Detailed explanation-1: -Close() Closes the Socket connection and releases all associated resources.
Detailed explanation-2: -Use the *CANCEL, TCP command to stop the connection to a node or on a socket. All active transmission and reception activity is allowed to complete before this command takes effect.
There is 1 question to complete.