WebSocketClientLogNet 属性 |
命名空间: HslCommunication.WebSocket
// 设备连接对象的日志 MelsecMcNet melsec = new MelsecMcNet( "192.168.0.100", 6000 ); // 举例实现日志文件为单日志文件 melsec.LogNet = new HslCommunication.LogNet.LogNetSingle( "D://123.txt" );
// 一般服务器对象的 NetSimplifyServer simplifyServer = new NetSimplifyServer( ); simplifyServer.LogNet = new HslCommunication.LogNet.LogNetSingle( "D://log.txt" ); simplifyServer.ReceiveStringEvent += ( HslCommunication.Core.Net.AppSession session, HslCommunication.NetHandle handle, string data ) => { simplifyServer.SendMessage( session, handle, "Back:" + data ); }; simplifyServer.ServerStart( 45678 );