started client

This commit is contained in:
shinichi
2020-09-23 11:12:10 +02:00
parent dcae307754
commit a52f1ea7ed
2 changed files with 31 additions and 12 deletions

31
Client/Client.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Net.Sockets;
namespace Client
{
class Client
{
private TcpClient client;
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
//connect fiets
}
public Client() : this("localhost", 5555)
{
}
public Client(string adress, int port)
{
this.client = new TcpClient();
client.BeginConnect(adress, 15243, new AsyncCallback(OnConnect), null);
}
}
}