public WorkerSocket(Socket workerSocket, Server server) { this.server = server; this.socket = workerSocket; this.stream = new NetworkStream(socket); this.writer = new BinaryWriter(stream, Encoding.UTF8); WaitForData(); }
private void Form1_Load(object sender, EventArgs e) { server = new Server(); server.Start(666); }