Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        private BinaryWriter writer; // facilitates writing to the stream

        #endregion Fields

        #region Constructors

        //private string mark; // player mark on the board
        internal NetPlayer(Socket socket, ChatServerForm serverValue, int newNumber)
        {
            connection = socket;
            server = serverValue;
            number = newNumber + ".player";

            // create NetworkStream object for Socket
            socketStream = new NetworkStream(connection);

            // create Streams for reading/writing bytes
            writer = new BinaryWriter(socketStream);
            reader = new BinaryReader(socketStream);
        }
Esempio n. 2
0
        private BinaryWriter writer; // facilitates writing to the stream

        #endregion Fields

        #region Constructors

        internal NetPlayer(Socket socket, ChatServerForm serverValue, int newNumber)
        {
            connection = socket;
            server = serverValue;
            number = newNumber + ".player";

            // create NetworkStream object for Socket
            socketStream = new NetworkStream(connection);

            // create Streams for reading/writing bytes
            writer = new BinaryWriter(socketStream);
            reader = new BinaryReader(socketStream);
            getBrand += new brandHandler(server.PC.getClientBrand);
            getCheckResult += new CheckResultHandler(server.PC.CheckUserResult);
            getBrandplayer += new BrandplayerHandler(server.PC.CheckChowResult);
        }
Esempio n. 3
0
        /// <summary>
        /// �s�u�]�w
        /// </summary>
        internal void onlineGame()
        {
            chat = new ChatServerForm();
            chat.PC = (PC_Network)this;
            chat.getNewGame += new newGameHandler(this.newClientGame);
            chat.getCheck += new CheckHandler(this.CheckUser);
            chat.getBrandplayers += new BrandplayersHandler(this.CheckChow);

            chat.startbutton.Click += new System.EventHandler(this.newServerGame);
            chat.getAllPlayer += new allPlayerHandler(this.updateAllPlayer);
            chat.Show();
        }
Esempio n. 4
0
 /// <summary>
 /// �s�u�]�w
 /// </summary>
 internal void onlineGame()
 {
     chat = new ChatServerForm();
     chat.PC = new PC_Network(table, this);
     chat.Show();
 }