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