using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HslCommunication
{

    /*******************************************************************************
     * 
     *    用于显示和保存的数据信息，未来支持中英文
     *
     *    Used to the return result class in the synchronize communication and communication for industrial Ethernet
     * 
     *******************************************************************************/




    internal class StringResources
    {

        /***********************************************************************************
         * 
         *    一般的错误信息
         * 
         ************************************************************************************/


        internal const string ConnectedFailed = "连接失败";
        internal const string UnknownError = "未知错误";
        internal const string ErrorCode = "错误代号";
        internal const string TextDescription = "文本描述";
        internal const string ExceptionMessage = "错误信息：";
        internal const string ExceptionStackTrace = "错误堆栈：";
        internal const string ExceptopnTargetSite = "错误方法：";
        internal const string ExceprionCustomer = "用户自定义方法出错：";



        /***********************************************************************************
         * 
         *    系统相关的错误信息
         * 
         ************************************************************************************/

        internal const string SystemInstallOperater = "安装新系统：IP为";
        internal const string SystemUpdateOperater = "更新新系统：IP为";


        /***********************************************************************************
         * 
         *    套接字相关的信息描述
         * 
         ************************************************************************************/

        internal const string SocketIOException = "套接字传送数据异常：";
        internal const string SocketSendException = "同步数据发送异常：";
        internal const string SocketHeadReceiveException = "指令头接收异常：";
        internal const string SocketContentReceiveException = "内容数据接收异常：";
        internal const string SocketContentRemoteReceiveException = "对方内容数据接收异常：";
        internal const string SocketAcceptCallbackException = "异步接受传入的连接尝试";
        internal const string SocketReAcceptCallbackException = "重新异步接受传入的连接尝试";
        internal const string SocketSendAsyncException = "异步数据发送出错:";
        internal const string SocketEndSendException = "异步数据结束挂起发送出错";
        internal const string SocketReceiveException = "异步数据发送出错:";
        internal const string SocketEndReceiveException = "异步数据结束接收指令头出错";
        internal const string SocketRemoteCloseException = "远程主机强迫关闭了一个现有的连接";


        /***********************************************************************************
         * 
         *    文件相关的信息
         * 
         ************************************************************************************/


        internal const string FileDownloadSuccess = "文件下载成功";
        internal const string FileDownloadFailed = "文件下载异常";
        internal const string FileUploadFailed = "文件上传异常";
        internal const string FileUploadSuccess = "文件上传成功";
        internal const string FileDeleteFailed = "文件删除异常";
        internal const string FileDeleteSuccess = "文件删除成功";
        internal const string FileReceiveFailed = "确认文件接收异常";
        internal const string FileNotExist = "文件不存在";
        internal const string FileSaveFailed = "文件存储失败";
        internal const string FileLoadFailed = "文件加载失败";
        internal const string FileSendClientFailed = "文件发送的时候发生了异常";
        internal const string FileWriteToNetFailed = "文件写入网络异常";
        internal const string FileReadFromNetFailed = "从网络读取文件异常";

        /***********************************************************************************
         * 
         *    服务器的引擎相关数据
         * 
         ************************************************************************************/

        internal const string TokenCheckFailed = "接收验证令牌不一致";
        internal const string TokenCheckTimeout = "接收验证超时:";
        internal const string NetClientAliasFailed = "客户端的别名接收失败：";
        internal const string NetEngineStart = "启动引擎";
        internal const string NetEngineClose = "关闭引擎";
        internal const string NetClientOnline = "上线";
        internal const string NetClientOffline = "下线";
        internal const string NetClientBreak = "异常掉线";
        internal const string NetClientFull = "服务器承载上限，收到超出的请求连接。";
        internal const string NetClientLoginFailed = "客户端登录中错误：";

    }
}
