Created
March 13, 2016 20:06
-
-
Save lukasz-pyrzyk/96443b30c941ad3c7f08 to your computer and use it in GitHub Desktop.
Decompiled code from TcpListener.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)] | |
public Task<Socket> AcceptSocketAsync() | |
{ | |
return Task<Socket>.Factory.FromAsync(new Func<AsyncCallback, object, IAsyncResult>(this.BeginAcceptSocket), new Func<IAsyncResult, Socket>(this.EndAcceptSocket), (object) null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment