What is the difference between BeginConnect
and ConnectAsync
? Subsequently, what is the difference between BeginDisconnect
and DisconnectAsync
?
The ConnectAsync
documentation states:
"Begins an asynchronous request for a remote host connection."
The BeginConnect
documentation also states:
"Begins an asynchronous request for a remote host connection."
Both the DisconnectAsync
and BeginDisconnect
also state the same thing:
"Begins an asynchronous request to disconnect from a remote endpoint."
What's the difference between those method pairs and which one should be used?