コード例 #1
0
 /// <summary>
 ///     Receives packets from socket.
 /// </summary>
 private static void Receive()
 {
     while (true)
     {
         NetGateway.ProcessReceive(NetGateway._listener.ReceiveFrameBytes());
     }
 }
コード例 #2
0
ファイル: NetManager.cs プロジェクト: NotHuza/Cerberus-v4
 /// <summary>
 ///     Starts the manager.
 /// </summary>
 public static void Start()
 {
     NetGateway.Initialize();
 }