Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SocketMessage.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 using System.Threading;
8 using SiliconStudio.Core;
9 using SiliconStudio.Core.Serialization;
10 
11 namespace SiliconStudio.Paradox.Engine.Network
12 {
13  [DataContract(Inherited = true)]
14  public class SocketMessage
15  {
16  public int StreamId { get; set; }
17 
18  public static int NextStreamId
19  {
20  get { return Interlocked.Increment(ref globalStreamId); }
21  }
22 
23  private static int globalStreamId;
24  }
25 }