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!"); - } - } -}