Beispiel #1
0
        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();
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     server = new Server();
     server.Start(666);
 }