Provides an abstraction of the protocol layer. Use it to establish a network connection with another game instance.
Esempio n. 1
0
 /// <summary>
 /// Connects to server
 /// Blocking atm
 /// </summary>
 /// <param name="host">Host</param>
 /// <param name="port">Port</param>
 public void ConnectToServer(string host, int port)
 {
     connectionToServer = new Connection(host, port, 0);
 }