예제 #1
0
 /// <summary>
 /// Calls connect on the remote socket to set the default provider.
 /// </summary>
 /// <param name="socket">The socket.</param>
 /// <returns>The new socket.</returns>
 public static Task <Socket> AcceptFromAsync(this Socket socket)
 {
     return(Task.Run(() => socket.AcceptFrom()));
 }