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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…