NodeNetAsync.Net.TcpSocket.CreateAndConnectAsync C# (CSharp) Méthode

CreateAndConnectAsync() static public méthode

static public CreateAndConnectAsync ( string Host, int Port, int BufferSize = NodeBufferedStream.DefaultBufferSize ) : Task
Host string
Port int
BufferSize int
Résultat Task
		async static public Task<TcpSocket> CreateAndConnectAsync(string Host, int Port, int BufferSize = NodeBufferedStream.DefaultBufferSize)
		{
			var TcpSocket = new TcpSocket(new SystemTcpClient(), BufferSize);
			await TcpSocket.ConnectAsync(Host, Port);
			return TcpSocket;
		}