问题描述
我的程序是通过一台电脑利用路由器局域网发送指令,控制另一台电脑串口连接的下位机,现在要把自定义的指令List<Order>传送给服务器,服务器接收后发送给下位机串口,求个类似的案例,菜鸟感激不尽。namespaceCountryClass{publicclassOrder{privatestring_OrderType;privatestring_SampleHole;privatestring_RHole;privatestring_SampleAmount;privatestring_RAmount;privatestring_AddHole;privatestring_TestHole;privatestring_SampleType;privatestring_WaveLength;privatestring_WashTime;privatestring_WaterAmount;privatestring_DilutionHole;privatestring_ResultID;privatestring_TestMethod;privatestring_TestTemperature;/privatestring_HotTemperature;privatestring_ColdTemperature;privatebool_is_used;privatebool_is_test_used;privatestring_Ban;privatestring_Turn;privatestring_Gather;
解决方案
解决方案二:
看这个http://www.cnblogs.com/T-MAC/p/fastsocket.html
时间: 2024-09-20 20:08:11