예제 #1
0
 /// <summary>
 /// Creates a new web server with the given port number and encoding, and then begins the
 /// await-data callback cascade.
 /// </summary>
 public Web_Server(int portNumber, Dictionary <int, PlayStats> playerStats, Encoding encoding = null)
 {
     Network.Server_Awaiting_Client_Loop(HandshakeCallback, portNumber);
     _PlayerStatsReference = playerStats;
     if (encoding == null)
     {
         _Encoding = Encoding.UTF8;
     }
     else
     {
         _Encoding = encoding;
     }
 }