mirror of
https://gitee.com/farsunset/cim.git
synced 2025-07-13 03:49:06 +08:00
24 lines
516 B
C#
24 lines
516 B
C#
using CIM_Standard;
|
|
using Google.Protobuf;
|
|
using System;
|
|
using System.Net.Sockets;
|
|
using static CIM_Standard.SocketHelper;
|
|
|
|
namespace CIM_SDK_Tests
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("-------------应用启动中-------------");
|
|
CIMConnect("127.0.0.1",23456, ConsoleMessage).Wait();
|
|
}
|
|
|
|
static void ConsoleMessage(MessageModel model)
|
|
{
|
|
Console.WriteLine(model.ToString());
|
|
}
|
|
|
|
}
|
|
}
|