internal static void SendData(byte [] data)
            {
                JNetworkData newData = new JNetworkData();

                newData.Data           = data;
                newData.RemoteEndPoint = new  IPEndPoint(IPAddress.Parse(JNetworkServerInfo.ServerIP), JNetworkServerInfo.ServerPort);
                lock (_sendLocker) {
                    JNetworkInteractiveData.SendData.Data.Enqueue(newData);
                    _sendSemaphore.Release();
                }
                JLog.Debug("JNetworkDataOperator.SendData[byte [] data] : send one data.", JGame.Log.JLogCategory.Network);
            }
            public static JPacketType GetNetworkPacketType(JNetworkData data)
            {
                if (null == data)
                {
                    return(JPacketType.npt_unknown);
                }

                try
                {
                    JInputStream inputStream = new JInputStream(data.Data);
                    return((JPacketType)inputStream.Reader.ReadInt16());
                }
                catch (Exception e) {
                    JLog.Error("JNetworkHelper.JPacketType error message :" + e.Message);
                }

                return(JPacketType.npt_unknown);
            }
            public static void ReceiveData(int len, byte[] data, EndPoint remoteEndPoint)
            {
                JNetworkData networkData = new JNetworkData();

                networkData.Len            = len;
                networkData.Data           = data;
                networkData.RemoteEndPoint = remoteEndPoint;

                try
                {
                    lock (_receiveLocker)
                    {
                        JNetworkInteractiveData.ReceivedData.Data.Enqueue(networkData);
                        _receivedSemaphore.Release();
                    }
                    JLog.Debug("JNetworkDataOperator.ReceiveData : added one data to received data queue", JGame.Log.JLogCategory.Network);
                }
                catch (Exception e) {
                    JLog.Error("ReceiveData:" + e.Message, JGame.Log.JLogCategory.Network);
                }
            }