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); }
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); }
/// <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(); }
/// <summary> /// �s�u�]�w /// </summary> internal void onlineGame() { chat = new ChatServerForm(); chat.PC = new PC_Network(table, this); chat.Show(); }