From a52f1ea7ede510d279669194927eafefb3f05e69 Mon Sep 17 00:00:00 2001 From: shinichi Date: Wed, 23 Sep 2020 11:12:10 +0200 Subject: [PATCH] started client --- Client/Client.cs | 31 +++++++++++++++++++++++++++++++ Client/Program.cs | 12 ------------ 2 files changed, 31 insertions(+), 12 deletions(-) create mode 100644 Client/Client.cs delete mode 100644 Client/Program.cs diff --git a/Client/Client.cs b/Client/Client.cs new file mode 100644 index 0000000..b8a1ea7 --- /dev/null +++ b/Client/Client.cs @@ -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); + } + } +} diff --git a/Client/Program.cs b/Client/Program.cs deleted file mode 100644 index 920b199..0000000 --- a/Client/Program.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace Client -{ - class Program - { - static void Main(string[] args) - { - Console.WriteLine("Hello World!"); - } - } -}