Beispiel #1
0
 public static SocketAwaitable SendToAsync(this Socket socket, SocketAwaitable awaitable)
 {
     return(awaitable.InvokeAsync(socket.SendToAsync));
 }
Beispiel #2
0
 public static SocketAwaitable ConnectAsync(this Socket socket, SocketAwaitable awaitable)
 {
     return(awaitable.InvokeAsync(socket.ConnectAsync));
 }
Beispiel #3
0
 public static SocketAwaitable ReceiveFromAsync(this Socket socket, SocketAwaitable awaitable)
 {
     return(awaitable.InvokeAsync(socket.ReceiveFromAsync));
 }
Beispiel #4
0
 public static SocketAwaitable AcceptAsync(this Socket socket, SocketAwaitable awaitable)
 {
     return(awaitable.InvokeAsync(socket.AcceptAsync));
 }