void DoServerStuff() { // Setup as server here IPAddress ipAd = IPAddress.Parse(NetBreakoutPongServer.Constants.SERVER_IP); TcpListener server = new TcpListener(ipAd, NetBreakoutPongServer.Constants.SERVER_PORT); server.Start(); NetBreakoutPongServer.ClassicPongGameData data = new NetBreakoutPongServer.ClassicPongGameData(); data.gameBall.Position = new NetBreakoutPongServer.Location(250, 300); data.gameBall.Radius = 50; data.myPaddle.Height = 40; data.myPaddle.Width = 150; data.myPaddle.Position = new NetBreakoutPongServer.Location(500, 580); data.oppPaddle.Height = 40; data.oppPaddle.Width = 150; data.oppPaddle.Position = new NetBreakoutPongServer.Location(300, 20); NetBreakoutPongServer.GameClient client = new NetBreakoutPongServer.GameClient(server); //Thread.Sleep(5000); client.SendData(data); client.Dispose(); }