Web hosting rating - 1136 Networking: Streams-Based Sockets and Datagrams Chapter 22
1136 Networking: Streams-Based Sockets and Datagrams Chapter 22 203 // display the message 204 else 205 displayTextBox.Text += message + “rn”; 206 207 } // end method ProcessMessage 208 209 // sends the server the number of the clicked square 210 public void SendClickedSquare( int location ) 211 { 212 // if it is the current player’s move right now 213 if ( myTurn ) 214 { 215 // send the location of the move to the server 216 writer.Write( location ); 217 218 // it is now the other player’s turn 219 myTurn = false; 220 } 221 } 222 223 // write-only property for the current square 224 public Square CurrentSquare 225 { 226 set 227 { 228 currentSquare = value; 229 } 230 } 231 232 } // end class Client 1. Fig. 22.6 Fig. 22.FiFig. 22.6g. 22.6Client side of client/server Tic-Tac-Toe program. (Part 5 of 7.) Fig. 22.6
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision mysql hosting services